File: pr07.fw

package info (click to toggle)
funnelweb 3.2-4.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,744 kB
  • sloc: ansic: 9,156; makefile: 17
file content (36 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (7)
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@>