Skip to content

Commit

Permalink
failing test: group names
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jan 17, 2018
1 parent 13aac34 commit 45ac76a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/behavior/generated-parser-behavior.spec.js
Expand Up @@ -1359,6 +1359,23 @@ describe("generated parser behavior", function() {
} );
} );

it( "reports expectations correctly with look ahead + grouped names", function () {
var parser = peg.generate( [
'Start',
' = Char+ End',
'End "end"',
' = "e"',
'Char',
' = !End [a-z]'
].join( "\n" ), options );
expect( parser ).toFailToParse( "a", {
expected: [
{ type: 'class', parts: [ [ 'a', 'z' ] ], inverted: false, ignoreCase: false },
{ type : 'other', description : 'end' }
]
} );
} );

it("reports expectations correctly with look ahead (original)", function () {
var parser = peg.generate( [
'Statement',
Expand Down

0 comments on commit 45ac76a

Please sign in to comment.