Fixed crash in MODIFY OUTPUT when no valid FORMAT clause was specified.
[pspp] / tests / output / tables.at
index 10b321a4e246788d4a72591e73c7c8159334e3e5..1a7727fc2e515f331fd0bcc15f05fc100e55aafe 100644 (file)
@@ -1,6 +1,6 @@
 AT_BANNER([output -- tables])
 
-AT_SETUP([precision])
+AT_SETUP([OUTPUT precision])
 
 AT_DATA([prec.sps], [[
 data list notable list /A * B *.
@@ -61,3 +61,27 @@ Pair 1,A - B,-2.00,.94,.42,-3.16,-.84,-4.78,4,.00877
 ])
 
 AT_CLEANUP
+
+
+
+
+AT_SETUP([OUTPUT crash])
+
+AT_DATA([prec.sps], [[
+data list notable list /A * B *.
+begin data.
+2.0 3.0
+1.0 2.0
+end data.
+
+OUTPUT MODIFY 
+       /SELECT TABLES 
+       /TABLECELLS  SELECT = [ SIGNIFICANCE ] 
+       "FORMAT = F/1.
+
+t-test /PAIRS a with b (PAIRED).
+]])
+
+AT_CHECK([pspp -O format=csv prec.sps], [1], [ignore])
+
+AT_CLEANUP
\ No newline at end of file