Skip to content

Commit 317d88f

Browse files
test: support test cases with quotes
1 parent 5c7a009 commit 317d88f

File tree

2 files changed

+92
-65
lines changed

2 files changed

+92
-65
lines changed

assembly/__spec_tests__/generated.spec.ts

Lines changed: 81 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ it("line: 89 - matches ^[ab\\]cde] against 'fthing'", () => {
442442
it("line: 90 - matches ^[ab\\]cde] against '[thing'", () => {
443443
expectNotMatch("^[ab\\]cde]", ["[thing"]);
444444
});
445-
it("line: 91 - matches ^[ab\\]cde] against '\\\thing'", () => {
445+
it("line: 91 - matches ^[ab\\]cde] against '\\thing'", () => {
446446
expectNotMatch("^[ab\\]cde]", ["\\thing"]);
447447
});
448448
it("line: 92 - matches ^[]cde] against ']thing'", () => {
@@ -475,7 +475,7 @@ it("line: 99 - matches ^[^ab\\]cde] against '[thing'", () => {
475475
const match = exec("^[^ab\\]cde]", "[thing", "s");
476476
expect(match.matches[0]).toBe("[thing".substring(0, 1));
477477
});
478-
it("line: 100 - matches ^[^ab\\]cde] against '\\\thing'", () => {
478+
it("line: 100 - matches ^[^ab\\]cde] against '\\thing'", () => {
479479
const match = exec("^[^ab\\]cde]", "\\thing", "s");
480480
expect(match.matches[0]).toBe("\\thing".substring(0, 1));
481481
});
@@ -706,7 +706,7 @@ it("line: 159 - matches ([\\da-f:]+)$ against '0zzz'", () => {
706706
it("line: 160 - matches ([\\da-f:]+)$ against 'gzzz'", () => {
707707
expectNotMatch("([\\da-f:]+)$", ["gzzz"]);
708708
});
709-
it("line: 161 - matches ([\\da-f:]+)$ against 'fed\\x20'", () => {
709+
it("line: 161 - matches ([\\da-f:]+)$ against 'fed\x20'", () => {
710710
expectNotMatch("([\\da-f:]+)$", ["fed\x20"]);
711711
});
712712
it("line: 162 - matches ([\\da-f:]+)$ against 'Any old rubbish'", () => {
@@ -915,10 +915,23 @@ it("line: 191 - matches ^[\\da-f](\\.[\\da-f])*$ against 'a.b.c.1.2.3.C'", () =>
915915
expect(match.matches[0]).toBe("a.b.c.1.2.3.C".substring(0, 13));
916916
expect(match.matches[1]).toBe("a.b.c.1.2.3.C".substring(11, 13));
917917
});
918-
xit("line: 192 - test cases with quotes are not supported yet!", () => {});
919-
xit("line: 193 - test cases with quotes are not supported yet!", () => {});
920-
xit("line: 194 - test cases with quotes are not supported yet!", () => {});
921-
xit("line: 195 - test cases with quotes are not supported yet!", () => {});
918+
it('line: 192 - matches ^".*"\\s*(;.*)?$ against \'"1234"\'', () => {
919+
const match = exec('^".*"\\s*(;.*)?$', '"1234"', "s");
920+
expect(match.matches[0]).toBe('"1234"'.substring(0, 6));
921+
});
922+
it('line: 193 - matches ^".*"\\s*(;.*)?$ against \'"abcd" ;\'', () => {
923+
const match = exec('^".*"\\s*(;.*)?$', '"abcd" ;', "s");
924+
expect(match.matches[0]).toBe('"abcd" ;'.substring(0, 8));
925+
expect(match.matches[1]).toBe('"abcd" ;'.substring(7, 8));
926+
});
927+
it('line: 194 - matches ^".*"\\s*(;.*)?$ against \'"" ; rhubarb\'', () => {
928+
const match = exec('^".*"\\s*(;.*)?$', '"" ; rhubarb', "s");
929+
expect(match.matches[0]).toBe('"" ; rhubarb'.substring(0, 12));
930+
expect(match.matches[1]).toBe('"" ; rhubarb'.substring(3, 12));
931+
});
932+
it('line: 195 - matches ^".*"\\s*(;.*)?$ against \'"1234" : things\'', () => {
933+
expectNotMatch('^".*"\\s*(;.*)?$', ['"1234" : things']);
934+
});
922935
it("line: 196 - matches ^$ against ''", () => {
923936
const match = exec("^$", "", "s");
924937
expect(match.matches[0]).toBe("".substring(0, 0));
@@ -1095,11 +1108,11 @@ it("line: 264 - matches ^From\\s+\\S+\\s+([a-zA-Z]{3}\\s+){2}\\d{1,2}\\s+\\d\\d:
10951108
["From abcd Sep 01 12:33:02 1997"]
10961109
);
10971110
});
1098-
it("line: 265 - matches ^12.34 against '12\\n34'", () => {
1111+
it("line: 265 - matches ^12.34 against '12\n34'", () => {
10991112
const match = exec("^12.34", "12\n34", "s");
11001113
expect(match.matches[0]).toBe("12\n34".substring(0, 5));
11011114
});
1102-
it("line: 266 - matches ^12.34 against '12\\r34'", () => {
1115+
it("line: 266 - matches ^12.34 against '12\r34'", () => {
11031116
const match = exec("^12.34", "12\r34", "s");
11041117
expect(match.matches[0]).toBe("12\r34".substring(0, 5));
11051118
});
@@ -1126,36 +1139,36 @@ xit("line: 292 - lazy quantifiers are not supported", () => {});
11261139
xit("line: 293 - lazy quantifiers are not supported", () => {});
11271140
xit("line: 488 - lazy quantifiers are not supported", () => {});
11281141
xit("line: 489 - lazy quantifiers are not supported", () => {});
1129-
xit("line: 490 - test cases with quotes are not supported yet!", () => {});
1142+
xit("line: 490 - lazy quantifiers are not supported", () => {});
11301143
xit("line: 491 - lazy quantifiers are not supported", () => {});
1131-
xit("line: 492 - test cases with quotes are not supported yet!", () => {});
1144+
xit("line: 492 - lazy quantifiers are not supported", () => {});
11321145
xit("line: 493 - lazy quantifiers are not supported", () => {});
11331146
xit("line: 494 - lazy quantifiers are not supported", () => {});
11341147
xit("line: 1077 - lazy quantifiers are not supported", () => {});
11351148
xit("line: 1078 - lazy quantifiers are not supported", () => {});
1136-
xit("line: 1079 - test cases with quotes are not supported yet!", () => {});
1149+
xit("line: 1079 - lazy quantifiers are not supported", () => {});
11371150
xit("line: 1080 - lazy quantifiers are not supported", () => {});
1138-
xit("line: 1081 - test cases with quotes are not supported yet!", () => {});
1151+
xit("line: 1081 - lazy quantifiers are not supported", () => {});
11391152
xit("line: 1082 - lazy quantifiers are not supported", () => {});
11401153
xit("line: 1083 - lazy quantifiers are not supported", () => {});
11411154
xit("line: 1084 - back references are not supported", () => {});
11421155
xit("line: 1085 - back references are not supported", () => {});
11431156
xit("line: 1086 - test encoding issue", () => {});
11441157
xit("line: 1087 - requires triage", () => {});
11451158
xit("line: 1088 - requires triage", () => {});
1146-
it("line: 1089 - matches abc\\\x0def\\x00pqr\\x000xyz\\x0000AB against 'abc456 abc\\x0def\x00pqr\x000xyz\x0000ABCDE'", () => {
1159+
it("line: 1089 - matches abc\\x0def\\x00pqr\\x000xyz\\x0000AB against 'abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE'", () => {
11471160
const match = exec(
1148-
"abc\\\x0def\\x00pqr\\x000xyz\\x0000AB",
1161+
"abc\\x0def\\x00pqr\\x000xyz\\x0000AB",
11491162
"abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE",
11501163
"s"
11511164
);
11521165
expect(match.matches[0]).toBe(
11531166
"abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE".substring(7, 27)
11541167
);
11551168
});
1156-
it("line: 1090 - matches abc\\\x0def\\x00pqr\\x000xyz\\x0000AB against 'abc456 abc\\x0def\x00pqr\x000xyz\x0000ABCDE'", () => {
1169+
it("line: 1090 - matches abc\\x0def\\x00pqr\\x000xyz\\x0000AB against 'abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE'", () => {
11571170
const match = exec(
1158-
"abc\\\x0def\\x00pqr\\x000xyz\\x0000AB",
1171+
"abc\\x0def\\x00pqr\\x000xyz\\x0000AB",
11591172
"abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE",
11601173
"s"
11611174
);
@@ -1176,23 +1189,23 @@ xit("line: 1100 - back references are not supported", () => {});
11761189
xit("line: 1101 - back references are not supported", () => {});
11771190
xit("line: 1102 - test contains an octal escape sequence", () => {});
11781191
xit("line 1103 - issue with parsing the test itself", () => {});
1179-
it("line: 1104 - matches ^\\s against '\\x0cxyz'", () => {
1192+
it("line: 1104 - matches ^\\s against '\x0cxyz'", () => {
11801193
const match = exec("^\\s", "\x0cxyz", "s");
11811194
expect(match.matches[0]).toBe("\x0cxyz".substring(0, 1));
11821195
});
1183-
it("line: 1105 - matches ^\\s against '\\fabc'", () => {
1196+
it("line: 1105 - matches ^\\s against '\fabc'", () => {
11841197
const match = exec("^\\s", "\fabc", "s");
11851198
expect(match.matches[0]).toBe("\fabc".substring(0, 1));
11861199
});
1187-
it("line: 1106 - matches ^\\s against '\\nabc'", () => {
1200+
it("line: 1106 - matches ^\\s against '\nabc'", () => {
11881201
const match = exec("^\\s", "\nabc", "s");
11891202
expect(match.matches[0]).toBe("\nabc".substring(0, 1));
11901203
});
1191-
it("line: 1107 - matches ^\\s against '\\rabc'", () => {
1204+
it("line: 1107 - matches ^\\s against '\rabc'", () => {
11921205
const match = exec("^\\s", "\rabc", "s");
11931206
expect(match.matches[0]).toBe("\rabc".substring(0, 1));
11941207
});
1195-
it("line: 1108 - matches ^\\s against '\\tabc'", () => {
1208+
it("line: 1108 - matches ^\\s against '\tabc'", () => {
11961209
const match = exec("^\\s", "\tabc", "s");
11971210
expect(match.matches[0]).toBe("\tabc".substring(0, 1));
11981211
});
@@ -1308,13 +1321,13 @@ it("line: 1154 - matches ^abc$ against 'abc'", () => {
13081321
const match = exec("^abc$", "abc", "s");
13091322
expect(match.matches[0]).toBe("abc".substring(0, 3));
13101323
});
1311-
it("line: 1155 - matches ^abc$ against 'qqq\\nabc'", () => {
1324+
it("line: 1155 - matches ^abc$ against 'qqq\nabc'", () => {
13121325
expectNotMatch("^abc$", ["qqq\nabc"]);
13131326
});
1314-
it("line: 1156 - matches ^abc$ against 'abc\\nzzz'", () => {
1327+
it("line: 1156 - matches ^abc$ against 'abc\nzzz'", () => {
13151328
expectNotMatch("^abc$", ["abc\nzzz"]);
13161329
});
1317-
it("line: 1157 - matches ^abc$ against 'qqq\\nabc\nzzz'", () => {
1330+
it("line: 1157 - matches ^abc$ against 'qqq\nabc\nzzz'", () => {
13181331
expectNotMatch("^abc$", ["qqq\nabc\nzzz"]);
13191332
});
13201333
xit("line: 1158 - multi line regex not supported yet!", () => {});
@@ -1358,16 +1371,16 @@ it("line: 1174 - matches [\\d-]+ against '12-34'", () => {
13581371
it("line: 1175 - matches [\\d-]+ against 'aaa'", () => {
13591372
expectNotMatch("[\\d-]+", ["aaa"]);
13601373
});
1361-
it("line: 1178 - matches \\\x5c against '\\'", () => {
1362-
const match = exec("\\\x5c", "\\", "s");
1374+
it("line: 1178 - matches \\x5c against '\\'", () => {
1375+
const match = exec("\\x5c", "\\", "s");
13631376
expect(match.matches[0]).toBe("\\".substring(0, 1));
13641377
});
1365-
it("line: 1179 - matches \\\x20Z against 'the Zoo'", () => {
1366-
const match = exec("\\\x20Z", "the Zoo", "s");
1378+
it("line: 1179 - matches \\x20Z against 'the Zoo'", () => {
1379+
const match = exec("\\x20Z", "the Zoo", "s");
13671380
expect(match.matches[0]).toBe("the Zoo".substring(3, 5));
13681381
});
1369-
it("line: 1180 - matches \\\x20Z against 'Zulu'", () => {
1370-
expectNotMatch("\\\x20Z", ["Zulu"]);
1382+
it("line: 1180 - matches \\x20Z against 'Zulu'", () => {
1383+
expectNotMatch("\\x20Z", ["Zulu"]);
13711384
});
13721385
xit("line: 1181 - back references are not supported", () => {});
13731386
xit("line: 1182 - back references are not supported", () => {});
@@ -1382,23 +1395,23 @@ xit("line 1186 - issue with parsing the test itself", () => {});
13821395
xit("line 1187 - issue with parsing the test itself", () => {});
13831396
xit("line 1188 - issue with parsing the test itself", () => {});
13841397
xit("line: 1189 - test indicates a malformed regex, whereas it appears OK in JS", () => {});
1385-
it("line: 1190 - matches ^a.b against 'a\\rb'", () => {
1398+
it("line: 1190 - matches ^a.b against 'a\rb'", () => {
13861399
const match = exec("^a.b", "a\rb", "s");
13871400
expect(match.matches[0]).toBe("a\rb".substring(0, 3));
13881401
});
1389-
it("line: 1191 - matches ^a.b against 'a\\nb'", () => {
1402+
it("line: 1191 - matches ^a.b against 'a\nb'", () => {
13901403
const match = exec("^a.b", "a\nb", "s");
13911404
expect(match.matches[0]).toBe("a\nb".substring(0, 3));
13921405
});
13931406
it("line: 1192 - matches abc$ against 'abc'", () => {
13941407
const match = exec("abc$", "abc", "s");
13951408
expect(match.matches[0]).toBe("abc".substring(0, 3));
13961409
});
1397-
it("line: 1193 - matches abc$ against 'abc\\n'", () => {
1410+
it("line: 1193 - matches abc$ against 'abc\n'", () => {
13981411
expectNotMatch("abc$", ["abc\n"]);
13991412
});
14001413
xit("line: 1194 - multi line regex not supported yet!", () => {});
1401-
it("line: 1195 - matches abc$ against 'abc\\ndef'", () => {
1414+
it("line: 1195 - matches abc$ against 'abc\ndef'", () => {
14021415
expectNotMatch("abc$", ["abc\ndef"]);
14031416
});
14041417
xit("line: 1196 - multi line regex not supported yet!", () => {});
@@ -1466,7 +1479,7 @@ it("line: 1243 - matches [^a]+ against 'AAAaAbc '", () => {
14661479
const match = exec("[^a]+", "AAAaAbc ", "is");
14671480
expect(match.matches[0]).toBe("AAAaAbc ".substring(5, 8));
14681481
});
1469-
it("line: 1244 - matches [^a]+ against 'bbb\\nccc'", () => {
1482+
it("line: 1244 - matches [^a]+ against 'bbb\nccc'", () => {
14701483
const match = exec("[^a]+", "bbb\nccc", "s");
14711484
expect(match.matches[0]).toBe("bbb\nccc".substring(0, 7));
14721485
});
@@ -1812,41 +1825,41 @@ it("line: 1347 - matches ^(a){1,} against 'aaaaaaaa '", () => {
18121825
expect(match.matches[0]).toBe("aaaaaaaa ".substring(0, 8));
18131826
expect(match.matches[1]).toBe("aaaaaaaa ".substring(7, 8));
18141827
});
1815-
it("line: 1348 - matches .{0,}\\.gif against 'borfle\\nbib.gif\nno'", () => {
1828+
it("line: 1348 - matches .{0,}\\.gif against 'borfle\nbib.gif\nno'", () => {
18161829
const match = exec(".{0,}\\.gif", "borfle\nbib.gif\nno", "s");
18171830
expect(match.matches[0]).toBe("borfle\nbib.gif\nno".substring(0, 14));
18181831
});
1819-
it("line: 1349 - matches .*\\.gif against 'borfle\\nbib.gif\nno'", () => {
1832+
it("line: 1349 - matches .*\\.gif against 'borfle\nbib.gif\nno'", () => {
18201833
const match = exec(".*\\.gif", "borfle\nbib.gif\nno", "s");
18211834
expect(match.matches[0]).toBe("borfle\nbib.gif\nno".substring(0, 14));
18221835
});
18231836
xit("line: 1350 - multi line regex not supported yet!", () => {});
1824-
it("line: 1351 - matches .*\\.gif against 'borfle\\nbib.gif\nno'", () => {
1837+
it("line: 1351 - matches .*\\.gif against 'borfle\nbib.gif\nno'", () => {
18251838
const match = exec(".*\\.gif", "borfle\nbib.gif\nno", "s");
18261839
expect(match.matches[0]).toBe("borfle\nbib.gif\nno".substring(0, 14));
18271840
});
18281841
xit("line: 1352 - multi line regex not supported yet!", () => {});
1829-
it("line: 1353 - matches .*$ against 'borfle\\nbib.gif\nno'", () => {
1842+
it("line: 1353 - matches .*$ against 'borfle\nbib.gif\nno'", () => {
18301843
const match = exec(".*$", "borfle\nbib.gif\nno", "s");
18311844
expect(match.matches[0]).toBe("borfle\nbib.gif\nno".substring(0, 17));
18321845
});
18331846
xit("line: 1354 - multi line regex not supported yet!", () => {});
1834-
it("line: 1355 - matches .*$ against 'borfle\\nbib.gif\nno'", () => {
1847+
it("line: 1355 - matches .*$ against 'borfle\nbib.gif\nno'", () => {
18351848
const match = exec(".*$", "borfle\nbib.gif\nno", "s");
18361849
expect(match.matches[0]).toBe("borfle\nbib.gif\nno".substring(0, 17));
18371850
});
18381851
xit("line: 1356 - multi line regex not supported yet!", () => {});
1839-
it("line: 1357 - matches .*$ against 'borfle\\nbib.gif\nno\n'", () => {
1852+
it("line: 1357 - matches .*$ against 'borfle\nbib.gif\nno\n'", () => {
18401853
const match = exec(".*$", "borfle\nbib.gif\nno\n", "s");
18411854
expect(match.matches[0]).toBe("borfle\nbib.gif\nno\n".substring(0, 18));
18421855
});
18431856
xit("line: 1358 - multi line regex not supported yet!", () => {});
1844-
it("line: 1359 - matches .*$ against 'borfle\\nbib.gif\nno\n'", () => {
1857+
it("line: 1359 - matches .*$ against 'borfle\nbib.gif\nno\n'", () => {
18451858
const match = exec(".*$", "borfle\nbib.gif\nno\n", "s");
18461859
expect(match.matches[0]).toBe("borfle\nbib.gif\nno\n".substring(0, 18));
18471860
});
18481861
xit("line: 1360 - multi line regex not supported yet!", () => {});
1849-
it("line: 1361 - matches (.*X|^B) against 'abcde\\n1234Xyz'", () => {
1862+
it("line: 1361 - matches (.*X|^B) against 'abcde\n1234Xyz'", () => {
18501863
const match = exec("(.*X|^B)", "abcde\n1234Xyz", "s");
18511864
expect(match.matches[0]).toBe("abcde\n1234Xyz".substring(0, 11));
18521865
expect(match.matches[1]).toBe("abcde\n1234Xyz".substring(0, 11));
@@ -1860,7 +1873,7 @@ xit("line: 1363 - requires triage", () => {});
18601873
xit("line: 1364 - multi line regex not supported yet!", () => {});
18611874
xit("line: 1365 - multi line regex not supported yet!", () => {});
18621875
xit("line: 1366 - multi line regex not supported yet!", () => {});
1863-
it("line: 1367 - matches (.*X|^B) against 'abcde\\n1234Xyz'", () => {
1876+
it("line: 1367 - matches (.*X|^B) against 'abcde\n1234Xyz'", () => {
18641877
const match = exec("(.*X|^B)", "abcde\n1234Xyz", "s");
18651878
expect(match.matches[0]).toBe("abcde\n1234Xyz".substring(0, 11));
18661879
expect(match.matches[1]).toBe("abcde\n1234Xyz".substring(0, 11));
@@ -1880,7 +1893,7 @@ xit("line: 1375 - non capturing groups not supported", () => {});
18801893
xit("line: 1376 - non capturing groups not supported", () => {});
18811894
xit("line: 1377 - non capturing groups not supported", () => {});
18821895
xit("line: 1378 - non capturing groups not supported", () => {});
1883-
it("line: 1379 - matches ^.*B against 'abc\\nB'", () => {
1896+
it("line: 1379 - matches ^.*B against 'abc\nB'", () => {
18841897
const match = exec("^.*B", "abc\nB", "s");
18851898
expect(match.matches[0]).toBe("abc\nB".substring(0, 5));
18861899
});
@@ -1974,8 +1987,24 @@ it("line: 1405 - matches ab\\d{0}e against 'abe'", () => {
19741987
it("line: 1406 - matches ab\\d{0}e against 'ab1e '", () => {
19751988
expectNotMatch("ab\\d{0}e", ["ab1e "]);
19761989
});
1977-
xit("line: 1407 - test cases with quotes are not supported yet!", () => {});
1978-
xit("line: 1408 - test cases with quotes are not supported yet!", () => {});
1990+
it('line: 1407 - matches "([^\\\\"]+|\\\\.)*" against \'the "quick" brown fox\'', () => {
1991+
const match = exec('"([^\\\\"]+|\\\\.)*"', 'the "quick" brown fox', "s");
1992+
expect(match.matches[0]).toBe('the "quick" brown fox'.substring(4, 11));
1993+
expect(match.matches[1]).toBe('the "quick" brown fox'.substring(5, 10));
1994+
});
1995+
it('line: 1408 - matches "([^\\\\"]+|\\\\.)*" against \'"the \\"quick\\" brown fox" \'', () => {
1996+
const match = exec(
1997+
'"([^\\\\"]+|\\\\.)*"',
1998+
'"the \\"quick\\" brown fox" ',
1999+
"s"
2000+
);
2001+
expect(match.matches[0]).toBe(
2002+
'"the \\"quick\\" brown fox" '.substring(0, 25)
2003+
);
2004+
expect(match.matches[1]).toBe(
2005+
'"the \\"quick\\" brown fox" '.substring(14, 24)
2006+
);
2007+
});
19792008
xit("line: 1409 - lazy quantifiers are not supported", () => {});
19802009
xit("line: 1410 - word boundary class not supported yet!", () => {});
19812010
xit("line: 1411 - word boundary class not supported yet!", () => {});
@@ -1985,31 +2014,31 @@ it("line: 1414 - matches a[^a]b against 'acb'", () => {
19852014
const match = exec("a[^a]b", "acb", "s");
19862015
expect(match.matches[0]).toBe("acb".substring(0, 3));
19872016
});
1988-
it("line: 1415 - matches a[^a]b against 'a\\nb'", () => {
2017+
it("line: 1415 - matches a[^a]b against 'a\nb'", () => {
19892018
const match = exec("a[^a]b", "a\nb", "s");
19902019
expect(match.matches[0]).toBe("a\nb".substring(0, 3));
19912020
});
19922021
it("line: 1416 - matches a.b against 'acb'", () => {
19932022
const match = exec("a.b", "acb", "s");
19942023
expect(match.matches[0]).toBe("acb".substring(0, 3));
19952024
});
1996-
it("line: 1417 - matches a.b against 'a\\nb '", () => {
2025+
it("line: 1417 - matches a.b against 'a\nb '", () => {
19972026
const match = exec("a.b", "a\nb ", "s");
19982027
expect(match.matches[0]).toBe("a\nb ".substring(0, 3));
19992028
});
20002029
it("line: 1418 - matches a[^a]b against 'acb'", () => {
20012030
const match = exec("a[^a]b", "acb", "s");
20022031
expect(match.matches[0]).toBe("acb".substring(0, 3));
20032032
});
2004-
it("line: 1419 - matches a[^a]b against 'a\\nb '", () => {
2033+
it("line: 1419 - matches a[^a]b against 'a\nb '", () => {
20052034
const match = exec("a[^a]b", "a\nb ", "s");
20062035
expect(match.matches[0]).toBe("a\nb ".substring(0, 3));
20072036
});
20082037
it("line: 1420 - matches a.b against 'acb'", () => {
20092038
const match = exec("a.b", "acb", "s");
20102039
expect(match.matches[0]).toBe("acb".substring(0, 3));
20112040
});
2012-
it("line: 1421 - matches a.b against 'a\\nb '", () => {
2041+
it("line: 1421 - matches a.b against 'a\nb '", () => {
20132042
const match = exec("a.b", "a\nb ", "s");
20142043
expect(match.matches[0]).toBe("a\nb ".substring(0, 3));
20152044
});

0 commit comments

Comments
 (0)