X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Fdescriptives.at;h=0c920130c955b0eab32dd28d5479419c4a35c7c2;hb=d84c9fab98875caf8fea1d870bf2a6bceeb36bdc;hp=7b4d29662cf8c05bc602c8616fb99cb86c5c3763;hpb=4f8462c882f28fed5345be2dab9d2cc73cd0b2da;p=pspp diff --git a/tests/language/stats/descriptives.at b/tests/language/stats/descriptives.at index 7b4d29662c..0c920130c9 100644 --- a/tests/language/stats/descriptives.at +++ b/tests/language/stats/descriptives.at @@ -340,10 +340,14 @@ DESCRIPTIVES /VAR=abc/SAVE. LIST. ]) AT_CHECK([pspp -o pspp.csv -o pspp.txt descriptives.sps], [0], [dnl -descriptives.sps:15: warning: DESCRIPTIVES: DESCRIPTIVES with Z scores ignores TEMPORARY. Temporary transformations will be made permanent. +descriptives.sps:15.23-15.26: warning: DESCRIPTIVES: DESCRIPTIVES with Z scores ignores TEMPORARY. Temporary transformations will be made permanent. + 15 | DESCRIPTIVES /VAR=abc/SAVE. + | ^~~~ ]) AT_CHECK([cat pspp.csv], [0], [dnl -descriptives.sps:15: warning: DESCRIPTIVES: DESCRIPTIVES with Z scores ignores TEMPORARY. Temporary transformations will be made permanent. +"descriptives.sps:15.23-15.26: warning: DESCRIPTIVES: DESCRIPTIVES with Z scores ignores TEMPORARY. Temporary transformations will be made permanent. + 15 | DESCRIPTIVES /VAR=abc/SAVE. + | ^~~~" Table: Mapping of Variables to Z-scores Source,Target @@ -442,3 +446,26 @@ Valid N (listwise),40,,,, Missing N (listwise),0,,,, ]) AT_CLEANUP + +dnl Check for regression for a bad error message that cited the +dnl token following the bad statistic name. +AT_SETUP([DESCRIPTIVES -- negative]) +AT_DATA([descriptives.sps], [dnl +DATA LIST NOTABLE/V0 to V16 1-17. +BEGIN DATA. +12128989012389023 +END DATA. +DESCRIPTIVES ALL/STATISTICS=COUNT MEAN. +]) +AT_CHECK([pspp descriptives.sps], [1], [dnl +descriptives.sps:5.29-5.33: error: DESCRIPTIVES: Syntax error expecting one of +the following: MEAN, SEMEAN, STDDEV, VARIANCE, KURTOSIS, SEKURTOSIS, SKEWNESS, +SESKEWNESS, RANGE, MINIMUM, MAXIMUM, SUM. + 5 | DESCRIPTIVES ALL/STATISTICS=COUNT MEAN. + | ^~~~~ + +descriptives.sps:5.35-5.38: error: DESCRIPTIVES: Syntax error. + 5 | DESCRIPTIVES ALL/STATISTICS=COUNT MEAN. + | ^~~~ +]) +AT_CLEANUP