X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fdictionary%2Fsplit-file.at;h=aec4b7449f02fb350d1d8c288d8eb0b833607ef7;hb=760c82efea3926983c50e0dab624505b20a39053;hp=83055bbf2103c6e39d9c6b73c362b1f16c8dd313;hpb=612b51515e356bc4dd625a3fb18d0a4f827a1e2c;p=pspp diff --git a/tests/language/dictionary/split-file.at b/tests/language/dictionary/split-file.at index 83055bbf21..aec4b7449f 100644 --- a/tests/language/dictionary/split-file.at +++ b/tests/language/dictionary/split-file.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([SPLIT FILE]) AT_SETUP([SPLIT FILE - basic test]) @@ -25,10 +41,9 @@ list. ]) AT_CHECK([pspp -o pspp.csv split-file.sps]) AT_CHECK([cat pspp.csv], [0], [dnl -Title: Test SPLIT FILE utility - -Variable,Value,Label -X,1, +Table: Split Values +Variable,Value +X,1 Table: Data List X,Y @@ -39,8 +54,9 @@ X,Y 1,5 1,4 -Variable,Value,Label -X,2, +Table: Split Values +Variable,Value +X,2 Table: Data List X,Y @@ -54,10 +70,6 @@ X,Y ]) AT_CLEANUP - - - - AT_SETUP([SPLIT FILE - vs procedures]) AT_DATA([split-file.sps], [dnl @@ -66,7 +78,7 @@ AT_DATA([split-file.sps], [dnl data list list /a b c q g *. begin data. -1 2 3 1 0 +1 2 3 1 0 4 5 6 0 0 7 8 9 1 0 10 11 12 0 1 @@ -78,7 +90,7 @@ split file by g. * The commented out lines are ones which currently fail. -AGGREGATE outfile='foo' /break=c /X=sum(a). +AGGREGATE outfile='foo' /break=c /X=sum(a). AUTORECODE variables = c into d . COUNT e = c (1 2 3 4 5 6 7). CROSSTABS a by b. @@ -103,7 +115,7 @@ ONEWAY c BY b. QUICK CLUSTER b c. RANK b c. REGRESSION /VARIABLES = c /DEPENDENT = q. -RELIABILITY /VARIABLES = c b d. +RELIABILITY /VARIABLES = c b d. RENAME VARIABLES (b = bb). ROC bb by q(1). SAMPLE 0.9 . @@ -119,4 +131,15 @@ finish. AT_CHECK([pspp -O format=csv split-file.sps], [0],[ignore]) -AT_CLEANUP \ No newline at end of file +AT_CLEANUP + +AT_SETUP([SPLIT FILE - split variable limit]) +AT_DATA([split-file.sps], [dnl +DATA LIST LIST NOTABLE /V1 TO V9. +SPLIT FILE BY V1 TO V9. +]) +AT_CHECK([pspp split-file.sps], [1], [dnl +split-file.sps:2: error: SPLIT FILE: At most 8 split variables may be +specified. +]) +AT_CLEANUP