Skip to content

Commit 8ae5650

Browse files
chore: test update
1 parent 8c058da commit 8ae5650

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

assembly/__spec_tests__/generated.spec.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -1597,10 +1597,14 @@ it("line: 1184 - matches (main(O)?)+ against 'mainmain'", () => {
15971597
expect(match.matches[0]).toBe("mainmain".substring(0, 8));
15981598
expect(match.matches[1]).toBe("mainmain".substring(4, 8));
15991599
});
1600-
xit("line 1185 - issue with parsing the test itself", () => {});
1601-
xit("line 1186 - issue with parsing the test itself", () => {});
1602-
xit("line 1187 - issue with parsing the test itself", () => {});
1603-
xit("line 1188 - issue with parsing the test itself", () => {});
1600+
it("line: 1185 - matches (main(O)?)+ against 'mainOmain'", () => {
1601+
const match = exec("(main(O)?)+", "mainOmain", "s");
1602+
expect(match.matches[0]).toBe("mainOmain".substring(0, 9));
1603+
expect(match.matches[1]).toBe("mainOmain".substring(5, 9));
1604+
});
1605+
xit("line: 1186 - test indicates a malformed regex, whereas it appears OK in JS", () => {});
1606+
xit("line: 1187 - test indicates a malformed regex, whereas it appears OK in JS", () => {});
1607+
xit("line: 1188 - test indicates a malformed regex, whereas it appears OK in JS", () => {});
16041608
xit("line: 1189 - test indicates a malformed regex, whereas it appears OK in JS", () => {});
16051609
it("line: 1190 - matches ^a.b against 'a\rb'", () => {
16061610
const match = exec("^a.b", "a\rb", "s");

spec/test-generator.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const knownIssues = {
2727
"test appears to be incorrect?": [203, 204],
2828
"issue with parsing the test itself": [
2929
1103,
30-
...range(1185, 1188),
3130
...range(1095, 1098),
3231
...range(487, 494),
3332
...range(1077, 1082),
@@ -39,7 +38,10 @@ const knownIssues = {
3938
"test requires a substring function": [1087, 1088],
4039

4140
/* -------- differences between PCRE and JS regex ------------ */
42-
"test indicates a malformed regex, whereas it appears OK in JS": [1189],
41+
"test indicates a malformed regex, whereas it appears OK in JS": [
42+
1189,
43+
...range(1186, 1188),
44+
],
4345
"JS does not support the \\A \\Z syntax for start and end of string": [
4446
1163,
4547
1164,

0 commit comments

Comments
 (0)