dnl PSPP - a program for statistical analysis.
dnl Copyright (C) 2017, 2019 Free Software Foundation, Inc.
-dnl
+dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation, either version 3 of the License, or
dnl (at your option) any later version.
-dnl
+dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
-dnl
+dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
dnl
weight by w.
-examine v1
+examine v1
/statistics=extreme(6)
.
])
AT_CLEANUP
dnl Test the PERCENTILES subcommand of the EXAMINE command.
-dnl In particular test that it behaves properly when there are only
+dnl In particular test that it behaves properly when there are only
dnl a few cases.
AT_SETUP([EXAMINE -- percentiles])
AT_KEYWORDS([categorical categoricals])
AT_DATA([examine.sps], [dnl
DATA LIST LIST /X *.
BEGIN DATA.
-2.00
-8.00
-5.00
+2.00
+8.00
+5.00
END DATA.
EXAMINE /x
AT_DATA([examine.sps], [dnl
DATA LIST LIST /x * y *.
BEGIN DATA.
-1 1
+1 1
2 1
3 1
4 1
examine a by x by y
/statistics=DESCRIPTIVES
- .
+ .
])
AT_CHECK([pspp -o pspp.csv examine.sps])
dnl Ignore output -- this is just a no-crash check.
EXAMINE /VARIABLES= z BY y.
-EXAMINE /VARIABLES= z.
+EXAMINE /VARIABLES= z.
])
AT_CHECK([pspp -o pspp.csv examine.sps])
dnl Ignore output -- this is just a no-crash check.
3 1
4 1
end data.
-examine x by y /statistics=descriptives.
+examine x by y /statistics=descriptives.
])
AT_CHECK([pspp -o pspp.csv examine.sps])
dnl Ignore output -- this is just a no-crash check.
AT_DATA([examine.sps], [dnl
DATA LIST LIST /quality * .
BEGIN DATA
-3
+3
END DATA
EXAMINE
- quality
- /STATISTICS descriptives
+ quality
+ /STATISTICS descriptives
/PLOT = histogram
.
])
.
END DATA.
-EXAMINE /x
+EXAMINE /x
PLOT=HISTOGRAM BOXPLOT NPPLOT SPREADLEVEL(1) ALL
/ID=x
/STATISTICS = DESCRIPTIVES EXTREME (5) ALL
dnl The actual bug that this checks for has been lost.
AT_SETUP([EXAMINE -- big input doesn't crash 2])
AT_KEYWORDS([categorical categoricals slow])
-AT_DATA([make-big-input.pl],
+AT_DATA([make-big-input.pl],
[for ($i=0; $i<100000; $i++) { print "AB12\n" };
for ($i=0; $i<100000; $i++) { print "AB04\n" };
])
])
AT_CHECK([pspp -o pspp.csv examine.sps])
dnl Ignore output -- this is just a no-crash check.
-AT_DATA([more-big-input.pl],
+AT_DATA([more-big-input.pl],
[for ($i=0; $i<25000; $i++) { print "AB04\nAB12\n" };
])
AT_CHECK([$PERL more-big-input.pl >> large.txt])
x,.37,14,.00
])
-AT_CLEANUP
+AT_CLEANUP
dnl Test for a crash which happened on cleanup from a bad input syntax
AT_SETUP([EXAMINE -- Bad Input])
9 2
end data.
-EXAMINE
+EXAMINE
/VARIABLES= h
BY g
/STATISTICS = DESCRIPTIVES EXTREME
AT_CHECK([pspp -o pspp.csv examine-bad.sps], [1], [ignore])
-AT_CLEANUP
+AT_CLEANUP
dnl Check the MISSING=REPORT option
a,User-missing value.
]])
-AT_CLEANUP
+AT_CLEANUP
dnl Run a test of the basic STATISTICS using a "real"
,Kurtosis,,.5300,.4783
])
-AT_CLEANUP
+AT_CLEANUP
AT_CHECK([pspp -o pspp.csv examine-empty-parens.sps], [1], [ignore])
-AT_CLEANUP
+AT_CLEANUP
AT_CHECK([pspp -o pspp.csv examine-bad-variable.sps], [1], [ignore])
-AT_CLEANUP
+AT_CLEANUP
,,3,2,4.00
])
-AT_CLEANUP
+AT_CLEANUP
dnl This is an example from doc/tutorial.texi
dnl So if the results of this have to be changed in any way,