* npar-chisquare.sh: Ditto.
* very-long-strings.sh: Ditto.
+2007-04-03 Ben Pfaff <blp@gnu.org>
+ John McCabe-Dansted <gmatht@gmail.com>
+
+ * npar-binomial.sh: Be less picky about whitespace in PSPP output.
+
+ * npar-chisquare.sh: Ditto.
+
+ * very-long-strings.sh: Ditto.
+
2007-04-03 Ben Pfaff <blp@gnu.org>
Apply patches #5828, #5837, #5841, #5843.
activity="compare output 1"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff $TEMPDIR/pspp.list - << EOF
+diff -b $TEMPDIR/pspp.list - << EOF
P < 0.5; N1/N2 < 1
1.1 NPAR TESTS. Binomial Test
+-+------#--------+--+--------------+----------+---------------------+
activity="compare output 1"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff $TEMPDIR/pspp.list - << EOF
+diff -b $TEMPDIR/pspp.list - << EOF
1.1 NPAR TESTS. x
+--------#----------+----------+--------+
| #Observed N|Expected N|Residual|
activity="compare errors 2"
perl -pi -e 's/^\s*$//g' $TEMPDIR/output
-diff $TEMPDIR/output - << EOF
+diff -b $TEMPDIR/output - << EOF
error: CHISQUARE test specified 6 expected values, but 4 distinct values were encountered in variable y.
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output 3"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff $TEMPDIR/pspp.list - <<EOF
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 NPAR TESTS. Frequencies
+-----#---------------------------------------#---------------------------------------+
| # x # y |
activity="compare output 4"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff $TEMPDIR/pspp.list - <<EOF
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 NPAR TESTS. Frequencies
+-----#---------------------------------------#---------------------------------------+
| # x # y |
activity="compare variable display 0"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff $TEMPDIR/pspp.list - <<EOF
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DISPLAY.
+--------+-------------------------------------------+--------+
|Variable|Description |Position|
# Check that the file read back in has the same data as what we wrote.
activity="compare print"
-diff $TEMPDIR/out.txt $TEMPDIR/data
+diff -b $TEMPDIR/out.txt $TEMPDIR/data
if [ $? -ne 0 ] ; then fail ; fi
activity="compare variable display"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff $TEMPDIR/pspp.list - <<EOF
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DISPLAY.
+--------+-------------------------------------------+--------+
|Variable|Description |Position|