X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/2b548aa6484c3d1b64a4b3085c112e3ec8a36aa1..29ae55f112c411438e778ccf2fd3fca8332ca0f2:/tests/regression.at diff --git a/tests/regression.at b/tests/regression.at index 849f526c..9fadf50c 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -501,40 +501,30 @@ AT_CLEANUP -## ----------------- ## -## Invalid input 1. ## -## ----------------- ## +## ---------------- ## +## Invalid inputs. ## +## ---------------- ## -AT_SETUP([Invalid input: 1]) +AT_SETUP([Invalid inputs]) AT_DATA([input.y], [[%% ? -]]) - -AT_CHECK([bison input.y], [1], [], -[[input.y:2: invalid input: `?' -input.y:3: fatal error: no rules in the input grammar -]]) - -AT_CLEANUP - - -## ----------------- ## -## Invalid input 2. ## -## ----------------- ## - - -AT_SETUP([Invalid input: 2]) - -AT_DATA([input.y], -[[%% default: 'a' } +%{ +%& +%a +%- ]]) AT_CHECK([bison input.y], [1], [], -[[input.y:2: invalid input: `}' +[[input.y:2: invalid input: `?' +input.y:3: invalid input: `}' +input.y:4: invalid input: `%{' +input.y:5: invalid input: `%&' +input.y:6: invalid input: `%a' +input.y:7: invalid input: `%-' ]]) AT_CLEANUP