X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Fcorrelations.at;h=4cb97f32016186917faa552168df5296bf798e36;hb=d84c9fab98875caf8fea1d870bf2a6bceeb36bdc;hp=9a24da63f2287ce6847a9f83599e40d0e605aab1;hpb=ab19e5378e9509be1beaf5c1ca837c1acf69e764;p=pspp diff --git a/tests/language/stats/correlations.at b/tests/language/stats/correlations.at index 9a24da63f2..4cb97f3201 100644 --- a/tests/language/stats/correlations.at +++ b/tests/language/stats/correlations.at @@ -408,3 +408,40 @@ correlations.sps:13: error: CORRELATIONS: The data for the chosen variables are ]) AT_CLEANUP + +AT_SETUP([CORRELATIONS -- syntax errors]) +AT_DATA([correlations.sps], [dnl +DATA LIST LIST NOTABLE /x y z. +CORRELATIONS MISSING=**. +CORRELATIONS PRINT=**. +CORRELATIONS STATISTICS=**. +CORRELATIONS **. +CORRELATIONS x y z WITH **. +CORRELATIONS. +]) +AT_CHECK([pspp -O format=csv correlations.sps], [1], [dnl +"correlations.sps:2.22-2.23: error: CORRELATIONS: Syntax error expecting PAIRWISE, LISTWISE, INCLUDE, or EXCLUDE. + 2 | CORRELATIONS MISSING=**. + | ^~" + +"correlations.sps:3.20-3.21: error: CORRELATIONS: Syntax error expecting TWOTAIL, ONETAIL, SIG, or NOSIG. + 3 | CORRELATIONS PRINT=**. + | ^~" + +"correlations.sps:4.25-4.26: error: CORRELATIONS: Syntax error expecting DESCRIPTIVES, XPROD, or ALL. + 4 | CORRELATIONS STATISTICS=**. + | ^~" + +"correlations.sps:5.14-5.15: error: CORRELATIONS: Syntax error expecting variable name. + 5 | CORRELATIONS **. + | ^~" + +"correlations.sps:6.25-6.26: error: CORRELATIONS: Syntax error expecting variable name. + 6 | CORRELATIONS x y z WITH **. + | ^~" + +"correlations.sps:7.1-7.12: error: CORRELATIONS: No variables specified. + 7 | CORRELATIONS. + | ^~~~~~~~~~~~" +]) +AT_CLEANUP \ No newline at end of file