end data.
-t-test /MISSING=analysis /PAIRS a c with b d (PAIRED) /CRITERIA=CIN(0.95).
+t-test /MISSING=analysis /PAIRS a c with b d (PAIRED) /CRITERIA=CI(0.95).
])
AT_CHECK([pspp -o missing.csv missing.sps])
T-TEST
PAIRS = y WITH x (PAIRED)
/MISSING=ANALYSIS
- /CRITERIA=CIN(0.95).
+ /CRITERIA=CI(0.95).
])
AT_CHECK([pspp -O format=csv t-test.sps], [0], [dnl
TEMPORARY.
SELECT IF x < 7.
-t-test /groups=ind(1,2) /var x.
+t-test /groups=ind(1 2) /var x.
])
AT_CHECK([pspp -o temporary.csv temporary.sps])
AT_CHECK([cat temporary.csv], [0], [expout])
AT_CHECK([pspp t-test-crs.sps], [0],[ignore], [ignore])
AT_CLEANUP
+
+
+
+dnl Tests for a bug assert failed when a non-number was passes as the p value
+AT_SETUP([T-TEST non number p value])
+AT_DATA([t.sps], [dnl
+data list list /age d_frage_1 weight height *.
+begin data.
+1 2 3 1
+4 5 6 2
+end data.
+
+T-TEST /VARIABLES=age weight height
+ /GROUPS=d_frage_1(1,0) /MISSING=ANALYSIS /CRITERIA=CIN(p.95).
+])
+
+AT_CHECK([pspp t.sps], [1],[ignore], [ignore])
+
+AT_CLEANUP
+
+
+
+dnl Another crash on invalid input
+AT_SETUP([T-TEST unterminated string - paired])
+AT_DATA([t.sps], [dnl
+data list list /id * a * b * c * d *.
+begin data.
+5 2.0 3.0 4.0 4.0
+3 1.0 2.0 5.1 3.9
+3 2.0 4.5 5.2(3.8
+4 2.0 4.5 5n3 3.7
+5 3.0 6.0 5.9 3.6
+6 3.4 6.0 5.9 .
+end data.
+
+
+t-test /MISSING=listwise /PAIRS a"b with c d (PA RED).
+])
+
+AT_CHECK([pspp t.sps],[1],[ignore],[ignore])
+
+AT_CLEANUP
+
+
+
+