From 253393d6c3f10cd923e0b4fd4fc79d2c1c261b61 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 1 Jan 2013 18:32:03 +0100 Subject: [PATCH] Update tests to reflect change in EXAMINE / EXTREME behaviour. Commit bd156adaff5b7c1bbe48b5c64006ead58d9a37d6 slightly changed the behaviour of the EXTREME subcommand of the EXAMINE procedure, but the tests did not reflect this. This change updates the tests accordingly. Thanks to Zoltan Fabian for confirming which was the correct behaviour. --- tests/language/stats/examine.at | 35 ++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/tests/language/stats/examine.at b/tests/language/stats/examine.at index 0acbf5f330..bad259d58e 100644 --- a/tests/language/stats/examine.at +++ b/tests/language/stats/examine.at @@ -36,10 +36,11 @@ EXAMINE /STATISTICS descriptives extreme(3) . ]) -AT_CHECK([pspp -o pspp.csv examine.sps]) + + dnl In the following data, only the extreme values have been checked. dnl The descriptives have been blindly pasted. -AT_CHECK([cat pspp.csv], [0], [dnl +AT_CHECK([pspp -O format=csv examine.sps], [0], [dnl Table: Reading free-form data from INLINE. Variable,Format QUALITY,F8.0 @@ -77,8 +78,8 @@ Breaking Strain,Highest,1,12,7.00 ,,2,16,6.00 ,,3,14,5.00 ,Lowest,1,3,1.00 -,,2,3,1.00 -,,3,4,1.00 +,,2,4,1.00 +,,3,2,2.00 Table: Descriptives ,,,Statistic,Std. Error @@ -110,11 +111,11 @@ Breaking Strain,Aspeger,Highest,1,6,4.00 ,,,2,5,4.00 ,,,3,1,3.00 ,,Lowest,1,3,1.00 -,,,2,3,1.00 -,,,3,4,1.00 +,,,2,4,1.00 +,,,3,2,2.00 ,Bloggs,Highest,1,7,5.00 ,,,2,9,4.00 -,,,3,9,4.00 +,,,3,11,3.00 ,,Lowest,1,8,2.00 ,,,2,10,2.00 ,,,3,11,3.00 @@ -123,7 +124,7 @@ Breaking Strain,Aspeger,Highest,1,6,4.00 ,,,3,14,5.00 ,,Lowest,1,15,3.00 ,,,2,13,4.00 -,,,3,13,4.00 +,,,3,14,5.00 Table: Descriptives ,Manufacturer,,,Statistic,Std. Error @@ -167,6 +168,7 @@ Breaking Strain,Aspeger,Mean,,2.25,.45 ,,Skewness,,.30,.75 ,,Kurtosis,,.15,1.48 ]) + AT_CLEANUP AT_SETUP([EXAMINE -- extremes]) @@ -202,8 +204,8 @@ examine v1 /statistics=extreme(6) . ]) -AT_CHECK([pspp -o pspp.csv examine.sps]) -AT_CHECK([cat pspp.csv], [0], [dnl + +AT_CHECK([pspp -O format=csv examine.sps], [0],[dnl Table: Case Processing Summary ,Cases,,,,, ,Valid,,Missing,,Total, @@ -215,16 +217,17 @@ Table: Extreme Values V1,Highest,1,21,20.00 ,,2,20,19.00 ,,3,19,18.00 -,,4,19,18.00 -,,5,18,17.00 -,,6,17,16.00 +,,4,18,17.00 +,,5,17,16.00 +,,6,16,15.00 ,Lowest,1,1,1.00 ,,2,2,2.00 ,,3,3,3.00 -,,4,3,3.00 -,,5,4,3.00 -,,6,5,4.00 +,,4,4,3.00 +,,5,5,4.00 +,,6,6,5.00 ]) + AT_CLEANUP -- 2.30.2