Allow users to set the precision of output statistics.
[pspp-builds.git] / tests / stats / percentiles-compatible.sh
index d1e724d70f1289e4027c1bdd93d3e82a272f653d..8ac4c772a410bf8b6de9308de1ac4e30af7651f1 100755 (executable)
@@ -88,32 +88,32 @@ if [ $? -ne 0 ] ; then no_result ; fi
 activity="compare output $i"
 perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
 diff  -b $TEMPDIR/pspp.list - <<EOF
-1.1 FREQUENCIES.  X 
+1.1 FREQUENCIES.  X
 +-----------+--------+---------+--------+--------+--------+
 |           |        |         |        |  Valid |   Cum  |
 |Value Label|  Value |Frequency| Percent| Percent| Percent|
 #===========#========#=========#========#========#========#
-|           |    1.00|        1|    20.0|    20.0|    20.0|
-|           |    2.00|        1|    20.0|    20.0|    40.0|
-|           |    3.00|        1|    20.0|    20.0|    60.0|
-|           |    4.00|        1|    20.0|    20.0|    80.0|
-|           |    5.00|        1|    20.0|    20.0|   100.0|
+|           |    1.00|        1|   20.00|   20.00|   20.00|
+|           |    2.00|        1|   20.00|   20.00|   40.00|
+|           |    3.00|        1|   20.00|   20.00|   60.00|
+|           |    4.00|        1|   20.00|   20.00|   80.00|
+|           |    5.00|        1|   20.00|   20.00|  100.00|
 #===========#========#=========#========#========#========#
 |               Total|        5|   100.0|   100.0|        |
 +--------------------+---------+--------+--------+--------+
-+-----------------------+-----+
-|N           Valid      |    5|
-|            Missing    |    0|
-|Mean                   |3.000|
-|Std Dev                |1.581|
-|Minimum                |1.000|
-|Maximum                |5.000|
-|Percentiles 0          |1.000|
-|            25         |1.500|
-|            50 (Median)|3.000|
-|            75         |4.500|
-|            100        |5.000|
-+-----------------------+-----+
++-----------------------+----+
+|N           Valid      |   5|
+|            Missing    |   0|
+|Mean                   |3.00|
+|Std Dev                |1.58|
+|Minimum                |1.00|
+|Maximum                |5.00|
+|Percentiles 0          |1.00|
+|            25         |1.50|
+|            50 (Median)|3.00|
+|            75         |4.50|
+|            100        |5.00|
++-----------------------+----+
 EOF
 if [ $? -ne 0 ] ; then fail ; fi