Skip to content

Commit

Permalink
d -> dd
Browse files Browse the repository at this point in the history
  • Loading branch information
markw65 committed Aug 28, 2023
1 parent 965d772 commit 2a6393b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/behavior/generated-parser-behavior.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,7 @@ describe("generated parser behavior", () => {
it("reports expectations correctly with multiple alternatives", () => {
const parser = peg.generate("start = 'aa' / 'bb' / 'cc'", options);

expect(parser).to.failToParse("d", {
expect(parser).to.failToParse("dd", {
expected: [
{ type: "literal", text: "aa", ignoreCase: false },
{ type: "literal", text: "bb", ignoreCase: false },
Expand Down Expand Up @@ -2723,7 +2723,7 @@ describe("generated parser behavior", () => {
it("builds message correctly with multiple alternatives", () => {
const parser = peg.generate("start = 'aa' / 'bb' / 'cc'", options);

expect(parser).to.failToParse("d", {
expect(parser).to.failToParse("dd", {
message: "Expected \"aa\", \"bb\", or \"cc\" but \"d\" found.",
});
});
Expand Down

0 comments on commit 2a6393b

Please sign in to comment.