summaryrefslogtreecommitdiff
path: root/web/funnelAC/tests/pr07.fw
blob: d0524f874d6ca64ee953bd26ff0ccb9c99e36633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PR07: Test the parsing of == and += in macro definitions.

Trip the parser so we don't get any further.
@>

1. Test with no equals.
@$@<Sloth@>@{No equals in this macro definition.@}

2. Test with ==.
@$@<Sloth with equals@>==@{No equals in this macro definition.@}

3. Test with +=.
@$@<Sloth with plus@>+=@{No equals in this macro definition.@}

4. Test with syntax errors.

@$@<Error1@>++@{No equals in this macro definition.@}
@A@<Error recovery point@>

@$@<Error2@>@+=@{No equals in this macro definition.@}
@A@<Error recovery point@>

@$@<Error3@>+==+@{No equals in this macro definition.@}
@A@<Error recovery point@>

@$@<Error4@>=+@{No equals in this macro definition.@}
@A@<Error recovery point@>

@$@<Error4@>@=@=@{No equals in this macro definition.@}
@A@<Error recovery point@>

@$@<Error4@>@+@=@{No equals in this macro definition.@}
@A@<Error recovery point@>