Enable the show value labels feature
[pspp] / tests / language / expressions / parse.at
index 7ebc5dc15dbcf263c20560d0405328b2152060a3..31791a41daa62072ab21c0c1a5736d537a8c919f 100644 (file)
@@ -18,6 +18,23 @@ END IF.
 AT_CHECK([pspp -O format=csv parse.sps], [1], [dnl
 parse.sps:10: error: IF: Unknown identifier y.
 
-parse.sps:10: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.
+parse.sps:11: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.
+])
+AT_CLEANUP
+
+AT_SETUP([parse expression with invalid logical expression])
+AT_DATA([parse.sps], [dnl
+INPUT PROGRAM.
+LOOP c=1 to 10.
+COMPUTE var1=NORMAL(100).
+END CASE.
+END LOOP.
+END FILE.
+END INPUT PROGRAM.
+
+SELECT IF 2.
+])
+AT_CHECK([pspp -O format=csv parse.sps], [1], [dnl
+"parse.sps:9: error: SELECT IF: A logical expression was found to have a value other than 0 (false), 1 (true), or the system-missing value.  The result was forced to 0."
 ])
 AT_CLEANUP