X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b2ddc3f337c31b622d2748408bec2aff5089e20c..4862bdfd613f96f4ab67326e6d64db3e654aec11:/tests/input.at diff --git a/tests/input.at b/tests/input.at index 82fbe063..afacd201 100644 --- a/tests/input.at +++ b/tests/input.at @@ -25,33 +25,17 @@ AT_BANNER([[Input Processing.]]) ## Invalid $n. ## ## ------------ ## -AT_SETUP([Invalid dollar-n]) +AT_SETUP([Invalid \$n and @n]) AT_DATA([input.y], [[%% exp: { $$ = $1 ; }; -]]) - -AT_CHECK([bison input.y], [1], [], -[[input.y:2.13-14: integer out of range: `$1' -]]) - -AT_CLEANUP - - -## ------------ ## -## Invalid @n. ## -## ------------ ## - -AT_SETUP([Invalid @n]) - -AT_DATA([input.y], -[[%% exp: { @$ = @1 ; }; ]]) AT_CHECK([bison input.y], [1], [], -[[input.y:2.13-14: integer out of range: `@1' +[[input.y:2.13-14: integer out of range: `$1' +input.y:3.13-14: integer out of range: `@1' ]]) AT_CLEANUP @@ -200,11 +184,11 @@ AT_SETUP([Torturing the Scanner]) AT_DATA([input.y], []) AT_CHECK([bison input.y], [1], [], -[[input.y:1.1: syntax error, unexpected end of file +[[input.y:1.0: syntax error, unexpected end of file ]]) -AT_DATA([input.y], +AT_DATA([input.y], [{} ]) AT_CHECK([bison input.y], [1], [],