X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/110ef36a1a93c60cc83627492de40cb95aedf9b1..f49097730eb04fdb52bc1a625b93df26437bbefb:/tests/input.at?ds=sidebyside diff --git a/tests/input.at b/tests/input.at index c19b8c1e..db3f3234 100644 --- a/tests/input.at +++ b/tests/input.at @@ -921,38 +921,36 @@ AT_BISON_CHECK([[Input.y]], [1], [], AT_CLEANUP -## ---------------------------------------------- ## -## %define lr.default_reductions invalid values. ## -## ---------------------------------------------- ## +## ------------------------ ## +## %define enum variables. ## +## ------------------------ ## -AT_SETUP([[%define lr.default_reductions invalid values]]) +AT_SETUP([[%define enum variables]]) +# Front-end. AT_DATA([[input.y]], [[%define lr.default_reductions "bogus" %% start: ; ]]) - AT_BISON_CHECK([[input.y]], [[1]], [[]], [[input.y:1.9-29: invalid value for %define variable `lr.default_reductions': `bogus' +input.y:1.9-29: accepted value: `all' +input.y:1.9-29: accepted value: `consistent' +input.y:1.9-29: accepted value: `accepting' ]]) -AT_CLEANUP - -## ------------------------ ## -## %define enum variables. ## -## ------------------------ ## - -AT_SETUP([[%define enum variables]]) - +# Back-end. AT_DATA([[input.y]], [[%define api.push_pull "neither" %% start: ; ]]) - AT_BISON_CHECK([[input.y]], [1], [], [[input.y:1.9-21: invalid value for %define variable `api.push_pull': `neither' +input.y:1.9-21: accepted value: `pull' +input.y:1.9-21: accepted value: `push' +input.y:1.9-21: accepted value: `both' ]]) AT_CLEANUP