X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fdictionary%2Fdelete-variables.at;h=b5cda6e9d0f7797570db4f0e2f0a2786ecb5c7d2;hb=578bc59e7ec144bc8424e9a58807a791314cc0e8;hp=b4b199987b0633e4e71a6208928e66ff7c9430e7;hpb=37f29caf8a75a4eb9d2059814786dad10edb13fc;p=pspp diff --git a/tests/language/dictionary/delete-variables.at b/tests/language/dictionary/delete-variables.at index b4b199987b..b5cda6e9d0 100644 --- a/tests/language/dictionary/delete-variables.at +++ b/tests/language/dictionary/delete-variables.at @@ -62,3 +62,27 @@ s2,n1 2,. @&t@ ]) AT_CLEANUP + +AT_SETUP([DELETE VARIABLES syntax errors]) +AT_DATA([delete-variables.sps], [dnl +DATA LIST LIST NOTABLE /x y z. +BEGIN DATA. +1 2 3 +END DATA. +TEMPORARY. +DELETE VARIABLES x. +DELETE VARIABLES y z. +]) +AT_DATA([insert.sps], [dnl +INSERT FILE='delete-variables.sps' ERROR=IGNORE. +]) +AT_CHECK([pspp --testing-mode -O format=csv insert.sps], [1], [dnl +"delete-variables.sps:6.1-6.16: error: DELETE VARIABLES: DELETE VARIABLES may not be used after TEMPORARY. Temporary transformations will be made permanent. + 6 | DELETE VARIABLES x. + | ^~~~~~~~~~~~~~~~" + +"delete-variables.sps:7.1-7.20: error: DELETE VARIABLES: DELETE VARIABLES may not be used to delete all variables from the active dataset dictionary. Use NEW FILE instead. + 7 | DELETE VARIABLES y z. + | ^~~~~~~~~~~~~~~~~~~~" +]) +AT_CLEANUP \ No newline at end of file