PRINT SPACE: Improve error messages.
[pspp] / tests / language / data-io / data-list.at
index 8637ff7c6a348c4f4afa318109ee8e23e314c062..d7e98db79ef5fa8c88bdc70e3144cfcb5d9b8aef 100644 (file)
@@ -410,7 +410,9 @@ EXECUTE.
 ])
 
 AT_CHECK([pspp -O format=csv data-list.sps], [1], [dnl
-data-list.sps:1: error: DATA LIST: The SKIP value must be non-negative.
+"data-list.sps:1.41-1.42: error: DATA LIST: Syntax error expecting non-negative integer for SKIP.
+    1 | DATA LIST LIST FILE='f.in' NOTABLE SKIP=-1 /a b c d.
+      |                                         ^~"
 
 data-list.sps:3: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.
 ])
@@ -426,7 +428,9 @@ EXECUTE.
 ])
 
 AT_CHECK([pspp -O format=csv data-list.sps], [1], [dnl
-data-list.sps:1: error: DATA LIST: The RECORDS value must be non-negative.
+"data-list.sps:1.44-1.45: error: DATA LIST: Syntax error expecting non-negative integer for RECORDS.
+    1 | DATA LIST LIST FILE='f.in' NOTABLE RECORDS=-1 /a b c d.
+      |                                            ^~"
 
 data-list.sps:3: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.
 ])