Fixed a crash in the oneway command
[pspp-builds.git] / tests / language / stats / oneway.at
index ce121beb977dac2bda33886450fd4689d24e09e9..c824d9a49394f975bef6dee5da76f482d439507e 100644 (file)
@@ -900,4 +900,24 @@ temperature,Assume equal variances,1,-.98,2.74,.36,6,.73
 ,,3,-8.83,18.66,-.47,4.19,1.34
 ])
 
+AT_CLEANUP
+
+
+AT_SETUP([ONEWAY crash on single category independent variable])
+AT_DATA([crash.sps],[
+input program.
+loop #i = 1 to 10.
+compute test = #i.
+end case.
+end loop.
+end file.
+end input program.
+
+compute x = 1.
+
+oneway test by x.
+])
+
+AT_CHECK([pspp -O format=csv crash.sps], [0], [ignore])
+
 AT_CLEANUP
\ No newline at end of file