X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Foneway.at;h=6cec7597497aa48aae862d25a9149d3b7689e1f8;hb=27b5076a4c5530ff843c596e527a305617c67ec9;hp=1d6b4c13a09f29522df42cd0b7b39c107693610e;hpb=4a49e8177df96e6947609fcb6066d1d68e0f6675;p=pspp diff --git a/tests/language/stats/oneway.at b/tests/language/stats/oneway.at index 1d6b4c13a0..6cec759749 100644 --- a/tests/language/stats/oneway.at +++ b/tests/language/stats/oneway.at @@ -1,3 +1,19 @@ +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 . +dnl AT_BANNER([ONEWAY procedure]) AT_SETUP([ONEWAY basic operation]) @@ -995,3 +1011,43 @@ ONEWAY /VARIABLES= height weight temperature BY sex AT_CHECK([pspp -O format=csv crash4.sps], [0], [ignore]) AT_CLEANUP + + + +AT_SETUP([ONEWAY Crash on invalid dependent variable]) +AT_DATA([crash5.sps],[dnl +data list notable list /a * b *. +begin data. +3 0 +2 0 +6 2 +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_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