Rewrite PSPP output engine.
[pspp-builds.git] / tests / command / n_of_cases.sh
index 547135559f13de4dc1b815d9cbcdbda13ca6eced..24a3429b5b5b5b23b6c26714e3afad209483ead0 100755 (executable)
@@ -81,25 +81,24 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare output"
-perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff -b  $TEMPDIR/pspp.list - <<EOF
-       X
---------
-    1.00 
-    2.00 
-    3.00 
-    4.00 
-    5.00 
-    6.00 
-    7.00 
-    8.00 
-    9.00 
-   10.00 
-   11.00 
-   12.00 
-   13.00 
-   14.00 
-   15.00 
+diff -c $TEMPDIR/pspp.csv - <<EOF
+Table: Data List
+X
+1.00
+2.00
+3.00
+4.00
+5.00
+6.00
+7.00
+8.00
+9.00
+10.00
+11.00
+12.00
+13.00
+14.00
+15.00
 EOF
 if [ $? -ne 0 ] ; then fail ; fi