if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output 1"
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
diff $TEMPDIR/pspp.list - << EOF
1.1 NPAR TESTS. x
+--------#----------+----------+--------+
| 5.00# 1| 2.33| -1.33|
|Total # 14| | |
+--------#----------+----------+--------+
-
1.2 NPAR TESTS. y
+--------#----------+----------+--------+
| #Observed N|Expected N|Residual|
| 4.00# 2| 3.50| -1.50|
|Total # 14| | |
+--------#----------+----------+--------+
-
1.3 NPAR TESTS. Test Statistics
+-----------#-----+-----+
| # x | y |
|df # 5| 3|
|Asymp. Sig.# .678| .112|
+-----------#-----+-----+
-
2.1 NPAR TESTS. y
+--------#----------+----------+--------+
| #Observed N|Expected N|Residual|
| 4.00# 2| 3.50| -1.50|
|Total # 14| | |
+--------#----------+----------+--------+
-
2.2 NPAR TESTS. Test Statistics
+-----------#------+
| # y |
|df # 3|
|Asymp. Sig.# .014|
+-----------#------+
-
3.1 NPAR TESTS. Frequencies
+-----#---------------------------------------#---------------------------------------+
| # x # y |
|3 # 4.00| 2| 1.58| .42# 4.00| 2| 1.11| .89|
|Total# | 10| | # | 7| | |
+-----#--------+----------+----------+--------#--------+----------+----------+--------+
-
3.2 NPAR TESTS. Test Statistics
+-----------#----+-----+
| # x | y |
|df # 2| 2|
|Asymp. Sig.#.936| .127|
+-----------#----+-----+
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -eq 0 ] ; then no_result ; fi
activity="compare errors 2"
+perl -pi -e 's/^\s*$//g' $TEMPDIR/output
diff $TEMPDIR/output - << EOF
error: CHISQUARE test specified 6 expected values, but 4 distinct values were encountered in variable y.
EOF
activity="compare output 3"
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
diff $TEMPDIR/pspp.list - <<EOF
1.1 NPAR TESTS. Frequencies
+-----#---------------------------------------#---------------------------------------+
|8 # 5.00| 1| 1.50| -.50# 5.00| 1| 1.88| -.88|
|Total# | 12| | # | 15| | |
+-----#--------+----------+----------+--------#--------+----------+----------+--------+
-
1.2 NPAR TESTS. Test Statistics
+-----------#------+------+
| # x | y |
|df # 7| 7|
|Asymp. Sig.# .015| .002|
+-----------#------+------+
-
1.3 NPAR TESTS. Descriptive Statistics
+-#--+-----+-----+-----+-----+
| # N| Mean| Std.|Minim|Maxim|
|x#12|2.467|1.193|1.000|5.000|
|y#15|2.067|1.335|1.000|5.000|
+-#--+-----+-----+-----+-----+
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output 4"
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
diff $TEMPDIR/pspp.list - <<EOF
1.1 NPAR TESTS. Frequencies
+-----#---------------------------------------#---------------------------------------+
|8 # 5.00| 1| 1.75| -.75# 5.00| 0| 1.75| -1.75|
|Total# | 14| | # | 14| | |
+-----#--------+----------+----------+--------#--------+----------+----------+--------+
-
1.2 NPAR TESTS. Test Statistics
+-----------#------+------+
| # x | y |
|df # 7| 7|
|Asymp. Sig.# .062| .001|
+-----------#------+------+
-
1.3 NPAR TESTS. Descriptive Statistics
+-#--+-----+-----+-----+-----+
| # N| Mean| Std.|Minim|Maxim|
|x#14|2.686|1.231|1.000|5.000|
|y#14|1.857|1.099|1.000|4.000|
+-#--+-----+-----+-----+-----+
-
EOF
if [ $? -ne 0 ] ; then fail ; fi