Edit|Options: Add fields to change behaviour of output window.
[pspp] / tests / language / stats / roc.at
index 7ffb65228826933e1fd02dd430b563bc83f5eb1d..458edbc45ab5580dbc9e08fb6279cd453d96c567 100644 (file)
@@ -164,3 +164,40 @@ Area,Std. Error,Asymptotic Sig.,Lower Bound,Upper Bound
 .490,.111,.927,.307,.673
 ])
 AT_CLEANUP
+
+
+
+
+AT_SETUP([ROC crash on no state variable])
+AT_DATA([roc.sps], [dnl
+data list notable list /x * y * w * a *.
+begin data.
+5 5 1  0
+end data.
+
+
+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