Rewrite PSPP output engine.
[pspp-builds.git] / tests / command / npar-wilcoxon.sh
index c4a5d825f4895daff1035d489daeb82e7b9a094c..f4434a6454bcb8ad9f3c0a4a992810363b66ab4f 100755 (executable)
@@ -59,7 +59,7 @@ cd $TEMPDIR
 
 activity="create program 1"
 cat > $TESTFILE <<  EOF
-data list notable list /foo * bar * w *.
+data list notable list /foo * bar * w (f8.0).
 begin data.
 1.00     1.00   1
 1.00     2.00   1
@@ -94,38 +94,31 @@ activity="run program 1"
 $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
-
 activity="generate results"
-cat > $TEMPDIR/results.txt <<EOF
-1.1 NPAR TESTS.  Ranks
-#============================#==#=========#============#
-#                            # N|Mean Rank|Sum of Ranks#
-#============================#==#=========#============#
-#second - firstNegative Ranks# 5|     8.60|       43.00#
-#              Positive Ranks# 8|     6.00|       48.00#
-#              Ties          # 2|         |            #
-#              Total         #15|         |            #
-#============================#==#=========#============#
-
-1.2 NPAR TESTS.  Test Statistics
-#=====================#==============#
-#                     #second - first#
-#=====================#==============#
-#Z                    #         -.175#
-#Asymp. Sig (2-tailed)#          .861#
-#Exact Sig (2-tailed) #          .893#
-#Exact Sig (1-tailed) #          .446#
-#=====================#==============#
-
+cat > $TEMPDIR/results.csv <<EOF
+Table: Ranks
+,,N,Mean Rank,Sum of Ranks
+second - first,Negative Ranks,5,8.60,43.00
+,Positive Ranks,8,6.00,48.00
+,Ties,2,,
+,Total,15,,
+
+Table: Test Statistics
+,second - first
+Z,-.18
+Asymp. Sig. (2-tailed),.86
+Exact Sig. (2-tailed),.89
+Exact Sig. (1-tailed),.45
 EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare output 1"
-diff pspp.list $TEMPDIR/results.txt
+diff -c pspp.csv $TEMPDIR/results.csv
 if [ $? -ne 0 ] ; then fail ; fi
 
 
+
 # No weights this time. But some missing values
 activity="create program 2"
 cat > $TESTFILE <<  EOF
@@ -164,9 +157,8 @@ activity="run program 2"
 $SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
-
 activity="compare output 2"
-diff pspp.list $TEMPDIR/results.txt
+diff pspp.csv $TEMPDIR/results.csv
 if [ $? -ne 0 ] ; then fail ; fi