Fix crash when ROC was passed a non-number where a number was expected.
[pspp] / tests / language / stats / roc.at
index f8d41ba75d93c417e20ebc0b0c6d1ee8a8c9ff05..458edbc45ab5580dbc9e08fb6279cd453d96c567 100644 (file)
@@ -183,3 +183,21 @@ roc x y By(a (1)
 AT_CHECK([pspp -o pspp.csv roc.sps], [1], [ignore])
 
 AT_CLEANUP
+
+
+AT_SETUP([ROC crash on invalid syntax])
+AT_DATA([roc.sps], [dnl
+data list notable list /x * y * a *.
+bggin data.
+1 1 2  
+1 2 28
+end data.
+
+
+roc x y by a (1)
+       /criteria = ci(y5)
+])
+
+AT_CHECK([pspp -O format=csv roc.sps], [1], [ignore])
+
+AT_CLEANUP