X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Flexer%2Fscan.at;h=6df0caae9e3f99d029e0fed43868cbe5d62b967e;hb=6467d294ac5750d7ee060f5c4e0291275ece238d;hp=953be86debb843e922f429e92349bcecefd04e2c;hpb=29750abbb77e892f937b6551984df1952b4163a1;p=pspp diff --git a/tests/language/lexer/scan.at b/tests/language/lexer/scan.at index 953be86deb..6df0caae9e 100644 --- a/tests/language/lexer/scan.at +++ b/tests/language/lexer/scan.at @@ -1129,10 +1129,39 @@ STOP PSPP_CHECK_SCAN([-i]) AT_CLEANUP +AT_SETUP([DEFINE command - early end of command 4]) +AT_KEYWORDS([segment]) +AT_DATA([input], [dnl +dnl Notice the command terminator at the end of the DEFINE command, +dnl which should not be there and ends it early. +define !macro1. +data list /x 1. +]) +AT_DATA([expout-base], [dnl +ID "define" +SKIP +MACRO_ID "!macro1" +ENDCMD +SKIP +ID "data" +SKIP +ID "list" +SKIP +SLASH +ID "x" +SKIP +POS_NUM 1 +ENDCMD +-SKIP +STOP +]) +PSPP_CHECK_SCAN([-i]) +AT_CLEANUP + AT_SETUP([DEFINE command - missing !ENDDEFINE]) AT_KEYWORDS([scan]) AT_DATA([input], [dnl -define !macro1(). +define !macro1() content line 1 content line 2 ]) @@ -1142,7 +1171,6 @@ SKIP MACRO_ID "!macro1" LPAREN RPAREN -ENDCMD SKIP STRING "content line 1" SKIP