'foo
'very long unterminated string that be ellipsized in its error message
1e .x
-`
+^
�
])
AT_CHECK([pspp -O format=csv lexer.sps], [1], [dnl
lexer.sps:9.1-9.2: error: Syntax error at `1e': Missing exponent following `1e'.
-lexer.sps:9.4: error: Syntax error at `.': Unexpected `.' in middle of command.
+lexer.sps:9.4: error: Syntax error at `.': expecting command name.
-lexer.sps:9: error: Unknown command `x'.
+lexer.sps:10.1: error: Syntax error at `^': Bad character `^' in input.
-lexer.sps:10.1: error: Syntax error at ``': Bad character ``' in input.
-
-lexer.sps:11.1: error: Syntax error at `�': Bad character U+FFFD in input.
+lexer.sps:11.1-11.2: error: Syntax error at `�': Bad character U+FFFD in input.
])
AT_CLEANUP
lexer.sps:2: error: LIST: LIST is allowed only after the active dataset has been defined.
-lexer.sps:2.5: error: LIST: Syntax error at `.': Unexpected `.' in middle of command.
-
lexer.sps:2.6: error: LIST: Syntax error at `...': Bad character U+0000 in input.
])
AT_CLEANUP
printf "DATA LIST/5555555555555555." > lexer.sps
AT_CHECK([pspp -O format=csv lexer.sps], [1], [dnl
-lexer.sps:1.11-1.27: error: DATA LIST: Syntax error at `5555555555555555.': Expected integer between 1 and 2147483647.
+lexer.sps:1.11-1.26: error: DATA LIST: Syntax error at `5555555555555555': Expected integer between 1 and 2147483647.
])
AT_CLEANUP