Debian Codegraph @

tests/pr07.fw

raw
1 PR07: Test the parsing of == and += in macro definitions.
2
3 Trip the parser so we don't get any further.
4 @>
5
6 1. Test with no equals.
7 @$@<Sloth@>@{No equals in this macro definition.@}
8
9 2. Test with ==.
10 @$@<Sloth with equals@>==@{No equals in this macro definition.@}
11
12 3. Test with +=.
13 @$@<Sloth with plus@>+=@{No equals in this macro definition.@}
14
15 4. Test with syntax errors.
16
17 @$@<Error1@>++@{No equals in this macro definition.@}
18 @A@<Error recovery point@>
19
20 @$@<Error2@>@+=@{No equals in this macro definition.@}
21 @A@<Error recovery point@>
22
23 @$@<Error3@>+==+@{No equals in this macro definition.@}
24 @A@<Error recovery point@>
25
26 @$@<Error4@>=+@{No equals in this macro definition.@}
27 @A@<Error recovery point@>
28
29 @$@<Error4@>@=@=@{No equals in this macro definition.@}
30 @A@<Error recovery point@>
31
32 @$@<Error4@>@+@=@{No equals in this macro definition.@}
33 @A@<Error recovery point@>
34
35
36