1 AT_BANNER([OUTPUT MODIFY])
3 AT_SETUP([OUTPUT MODIFY syntax errors])
4 AT_DATA([output.sps], [dnl
5 OUTPUT MODIFY/SELECT **.
6 OUTPUT MODIFY/TABLECELLS SELECT **.
7 OUTPUT MODIFY/TABLECELLS SELECT=**.
8 OUTPUT MODIFY/TABLECELLS SELECT=[[**]].
9 OUTPUT MODIFY/TABLECELLS FORMAT **.
10 OUTPUT MODIFY/TABLECELLS FORMAT=ASDF5.
11 OUTPUT MODIFY/TABLECELLS **.
12 OUTPUT MODIFY/TABLECELLS SELECT="xyzzy" FORMAT=F8.2.
14 AT_CHECK([pspp -O format=csv output.sps], [1], [dnl
15 "output.sps:1.22-1.23: error: OUTPUT MODIFY: Syntax error expecting TABLES.
16 1 | OUTPUT MODIFY/SELECT **.
19 "output.sps:2.33-2.34: error: OUTPUT MODIFY: Syntax error expecting `='.
20 2 | OUTPUT MODIFY/TABLECELLS SELECT **.
23 "output.sps:3.33-3.34: error: OUTPUT MODIFY: Syntax error expecting `[['.
24 3 | OUTPUT MODIFY/TABLECELLS SELECT=**.
27 "output.sps:4.34-4.35: error: OUTPUT MODIFY: Syntax error expecting `]]'.
28 4 | OUTPUT MODIFY/TABLECELLS SELECT=[[**]].
31 "output.sps:5.33-5.34: error: OUTPUT MODIFY: Syntax error expecting `='.
32 5 | OUTPUT MODIFY/TABLECELLS FORMAT **.
35 "output.sps:6.38: error: OUTPUT MODIFY: Unknown format type `ASDF'.
36 6 | OUTPUT MODIFY/TABLECELLS FORMAT=ASDF5.
39 "output.sps:7.26-7.27: error: OUTPUT MODIFY: Syntax error expecting SELECT or FORMAT.
40 7 | OUTPUT MODIFY/TABLECELLS **.
43 "output.sps:8.33-8.39: error: OUTPUT MODIFY: Syntax error expecting `@<:@'.
44 8 | OUTPUT MODIFY/TABLECELLS SELECT=""xyzzy"" FORMAT=F8.2.