Skip to content

Commit

Permalink
Fixed tests for previous patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Dec 31, 2024
1 parent 712028c commit dfd0d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/TestATNConstruction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ describe("TestATNConstruction", () => {
const expecting =
"s0->RuleStart_A_1\n" +
"RuleStart_A_1->s3\n" +
"s3-{66352..66384}->s4\n" +
"s3-{66352..66383}->s4\n" +
"s4->RuleStop_A_2\n";
checkTokensRule(g, "", expecting);
});
Expand All @@ -247,7 +247,7 @@ describe("TestATNConstruction", () => {
const expecting =
"s0->RuleStart_A_1\n" +
"RuleStart_A_1->s3\n" +
"s3-{0..66351, 66385..1114111}->s4\n" +
"s3-{0..66351, 66384..1114111}->s4\n" +
"s4->RuleStop_A_2\n";
checkTokensRule(g, "", expecting);
});
Expand All @@ -261,7 +261,7 @@ describe("TestATNConstruction", () => {
const expecting =
"s0->RuleStart_A_1\n" +
"RuleStart_A_1->s3\n" +
"s3-{66352..66384, 69968..70016}->s4\n" +
"s3-{66352..66383, 69968..70015}->s4\n" +
"s4->RuleStop_A_2\n";
checkTokensRule(g, "", expecting);
});
Expand All @@ -275,7 +275,7 @@ describe("TestATNConstruction", () => {
const expecting =
"s0->RuleStart_A_1\n" +
"RuleStart_A_1->s3\n" +
"s3-{48..58, 65..71, 97..103, 65296..65306, 65313..65319, 65345..65351}->s4\n" +
"s3-{48..57, 65..70, 97..102, 65296..65305, 65313..65318, 65345..65350}->s4\n" +
"s4->RuleStop_A_2\n";
checkTokensRule(g, "", expecting);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/TestEscapeSequenceParsing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe("TestEscapeSequenceParsing", () => {

it("testParseUnicodeProperty", () => {
expect(EscapeSequenceParsing.parseEscape("\\p{Deseret}", 0)).toEqual(
expect.objectContaining(createResult(ResultType.Property, -1, IntervalSet.of(66560, 66640), 0, 11)));
expect.objectContaining(createResult(ResultType.Property, -1, IntervalSet.of(66560, 66639), 0, 11)));
});

it("testParseUnicodePropertyInvertedTooShort", () => {
Expand All @@ -96,7 +96,7 @@ describe("TestEscapeSequenceParsing", () => {

it("testParseUnicodePropertyInverted", () => {
const expected = IntervalSet.of(0, 66559);
expected.addRange(66641, Character.MAX_CODE_POINT);
expected.addRange(66640, Character.MAX_CODE_POINT);
expect(EscapeSequenceParsing.parseEscape("\\P{Deseret}", 0)).toEqual(
expect.objectContaining(createResult(ResultType.Property, -1, expected, 0, 11)));
});
Expand Down

0 comments on commit dfd0d9c

Please sign in to comment.