CROSSTABS: Use FORMAT setting to control output format.
[pspp] / tests / language / stats / t-test.at
index b97db81fd6e983879a96a2f899a60bb4bbecb8d8..d03a6ca9d5d34eb7abadd41ffa03b5f296a87bc2 100644 (file)
@@ -285,7 +285,7 @@ DEP,F8.0
 
 Table: Group Statistics
 ,INDEP,N,Mean,Std. Deviation,S.E. Mean
-DEP,>=    1.51,11,9.00,3.82,1.15
+DEP,    1.51,11,9.00,3.82,1.15
 ,<    1.51,11,8.00,2.86,.86
 
 Table: Independent Samples Test
@@ -626,9 +626,9 @@ T-TEST /testval=2.0 .
 T-TEST /groups=id(3) .
 ])
 AT_CHECK([pspp -O format=csv t-test.sps], [1], [dnl
-t-test.sps:11: error: T-TEST: One or more VARIABLES must be specified.
+t-test.sps:11: error: T-TEST: Required subcommand VARIABLES was not specified.
 
-t-test.sps:12: error: T-TEST: One or more VARIABLES must be specified.
+t-test.sps:12: error: T-TEST: Required subcommand VARIABLES was not specified.
 ])
 AT_CLEANUP
 
@@ -744,3 +744,23 @@ x,Equal variances assumed,1.13,.33,-2.32,6.00,.06,-.90,.38,-1.83,.03
 ])
 AT_CLEANUP
 
+
+
+dnl Tests for a bug assert failed when the group variables were not of either class
+AT_SETUP([T-TEST wrong group])
+AT_DATA([t-test-crs.sps], [dnl
+data list list /x * g *.
+begin data.
+1 2
+2 2
+3 2
+4 2
+5 2 
+end data.
+
+t-test /variables = x group=g(1,3).
+])
+
+AT_CHECK([pspp t-test-crs.sps], [0],[ignore], [ignore])
+
+AT_CLEANUP