+dnl PSPP - a program for statistical analysis.
+dnl Copyright (C) 2017 Free Software Foundation, Inc.
+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 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 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
AT_BANNER([ONEWAY procedure])
AT_SETUP([ONEWAY basic operation])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway.sps],
[DATA LIST NOTABLE LIST /QUALITY * BRAND * .
BEGIN DATA
AT_SETUP([ONEWAY with splits])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-splits.sps],
[DATA LIST NOTABLE LIST /QUALITY * BRAND * S *.
BEGIN DATA
AT_SETUP([ONEWAY with missing values])
+AT_KEYWORDS([categorical categoricals])
dnl Check that missing are treated properly
AT_DATA([oneway-missing1.sps],
[DATA LIST NOTABLE LIST /v1 * v2 * dep * vn *.
AT_SETUP([ONEWAY descriptives subcommand])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-descriptives.sps],
[DATA LIST NOTABLE LIST /QUALITY * BRAND * .
AT_SETUP([ONEWAY homogeneity subcommand])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-homogeneity.sps],
[DATA LIST NOTABLE LIST /QUALITY * BRAND * .
AT_SETUP([ONEWAY multiple variables])
+AT_KEYWORDS([categorical categoricals])
dnl check that everything works ok when several different dependent variables are specified.
dnl This of course does not mean that we're doing a multivariate analysis. It's just like
dnl running several tests at once.
dnl Tests that everything treats weights properly
AT_SETUP([ONEWAY vs. weights])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-unweighted.sps],
[DATA LIST NOTABLE LIST /QUALITY * BRAND * W *.
AT_SETUP([ONEWAY posthoc LSD and BONFERRONI])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-pig.sps],[dnl
SET FORMAT F12.3.
data list notable list /pigmentation * family *.
AT_SETUP([ONEWAY posthoc Tukey HSD and Games-Howell])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-tukey.sps],[dnl
set format = f11.3.
data list notable list /libido * dose *.
AT_CLEANUP
AT_SETUP([ONEWAY posthoc Sidak])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-sidak.sps],[dnl
SET FORMAT F20.4.
AT_CLEANUP
AT_SETUP([ONEWAY posthoc Scheffe])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-scheffe.sps],[dnl
set format = f11.3.
data list notable list /usage * group *.
AT_SETUP([ONEWAY bad contrast count])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([oneway-bad-contrast.sps],[dnl
DATA LIST NOTABLE LIST /height * weight * temperature * sex *.
AT_SETUP([ONEWAY crash on single category independent variable])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([crash.sps],[
input program.
loop #i = 1 to 10.
AT_SETUP([ONEWAY crash on missing dependent variable])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([crash2.sps],[dnl
data list notable list /dv1 * dv2 * y * .
begin data.
AT_SETUP([ONEWAY Games-Howell test with few cases])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([crash3.sps],[dnl
data list notable list /dv * y * .
begin data.
AT_SETUP([ONEWAY Crash on empty data])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([crash4.sps],[dnl
DATA LIST NOTABLE LIST /height * weight * temperature * sex *.
BEGIN DATA.
AT_SETUP([ONEWAY Crash on invalid dependent variable])
+AT_KEYWORDS([categorical categoricals])
AT_DATA([crash5.sps],[dnl
data list notable list /a * b *.
begin data.
end data.
oneway a"by b.
+
])
AT_CHECK([pspp -O format=csv crash5.sps], [1], [ignore])
AT_CLEANUP
+
+
+
+
+AT_SETUP([ONEWAY Crash on unterminated string])
+AT_KEYWORDS([categorical categoricals])
+
+AT_DATA([crash6.sps], [dnl
+DATA LIST NOTABLE LIST /height * weight * temperature * sex *.
+BEGIN DATA.
+1801 . . 0
+1606 . 0 . 1
+END DATA.
+
+ONEWAY /VARIABLES= height weight temperature BY sex
+ /CONTRAST =" 2 -2 1
+ .
+])
+
+AT_CHECK([pspp -O format=csv crash6.sps], [1], [ignore])
+
+AT_CLEANUP