diff options
Diffstat (limited to 'web/funnelAC/tests/pr06.fw')
-rw-r--r-- | web/funnelAC/tests/pr06.fw | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/web/funnelAC/tests/pr06.fw b/web/funnelAC/tests/pr06.fw new file mode 100644 index 0000000000..14b0c5e297 --- /dev/null +++ b/web/funnelAC/tests/pr06.fw @@ -0,0 +1,39 @@ +PR06: Test the parsing on invocation number constraints. + +Trip the parser so we don't get past it. +@> + +1. Test with no zero and no many. +@$@<Sloth@>@{No zero and no many in this macro@} + +2. Test with a zero. +@$@<Sloth zero@>@Z@{Can be called from 0 to 1 times.@} + +3. Test with a many. +@$@<Sloth many@>@M@{Can be called from 1 to infinity times.@} + +4. Test with a zero and a many. +@$@<Sloth zeromany@>@Z@M@{Can be called from 0 to infinity times.@} + +5. Test with a zero and a many but out of order (should give error). +@$@<Sloth manyzero@>@M@Z@{Oops.@} +@A@<Error recovery point@> + +6. Test with syntactic errors. + +@$@<Sloth a@> @M @Z @{Oops.@} +@A@<Error recovery point@> + +@$@<Sloth b@>@Z@Z@{Oops.@} +@A@<Error recovery point@> + +@$@<Sloth c@Z@>@{Oops.@} +@A@<Error recovery point@> + +@$@<Sloth d@>Z@{Oops.@} +@A@<Error recovery point@> + +@$@<Sloth d@>@ZM@{Oops.@} +@A@<Error recovery point@> + + |