diff --git a/tests/TestATNConstruction.spec.ts b/tests/TestATNConstruction.spec.ts index d2359e8..94ec5ca 100644 --- a/tests/TestATNConstruction.spec.ts +++ b/tests/TestATNConstruction.spec.ts @@ -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); }); @@ -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); }); @@ -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); }); @@ -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); }); diff --git a/tests/TestEscapeSequenceParsing.spec.ts b/tests/TestEscapeSequenceParsing.spec.ts index 89771bc..8c7598c 100644 --- a/tests/TestEscapeSequenceParsing.spec.ts +++ b/tests/TestEscapeSequenceParsing.spec.ts @@ -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", () => { @@ -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))); });