@@ -411,7 +411,7 @@ xit("line: 78 - lazy quantifiers are not supported", () => {});
411
411
xit ( "line: 79 - lazy quantifiers are not supported" , ( ) => { } ) ;
412
412
xit ( "line: 80 - lazy quantifiers are not supported" , ( ) => { } ) ;
413
413
xit ( "line: 81 - lazy quantifiers are not supported" , ( ) => { } ) ;
414
- xit ( "line: 82 - test regex is not supported in JS" , ( ) => { } ) ;
414
+ xit ( "line: 82 - test regex contains syntax not supported in JS" , ( ) => { } ) ;
415
415
it ( "line: 83 - matches ^[ab\\]cde] against 'athing'" , ( ) => {
416
416
const match = exec ( "^[ab\\]cde]" , "athing" , "" ) ;
417
417
expect ( match . matches [ 0 ] ) . toBe ( "athing" . substring ( 0 , 1 ) ) ;
@@ -674,13 +674,17 @@ it("line: 152 - matches ([\\da-f:]+)$ against 'abc'", () => {
674
674
expect ( match . matches [ 0 ] ) . toBe ( "abc" . substring ( 0 , 3 ) ) ;
675
675
expect ( match . matches [ 1 ] ) . toBe ( "abc" . substring ( 0 , 3 ) ) ;
676
676
} ) ;
677
- xit ( "line: 153 - requires triage " , ( ) => { } ) ;
677
+ xit ( "line: 153 - aspect [Actual]: <Match>null vs [Expected]: Not <Match>null issue " , ( ) => { } ) ;
678
678
it ( "line: 154 - matches ([\\da-f:]+)$ against 'E'" , ( ) => {
679
679
const match = exec ( "([\\da-f:]+)$" , "E" , "i" ) ;
680
680
expect ( match . matches [ 0 ] ) . toBe ( "E" . substring ( 0 , 1 ) ) ;
681
681
expect ( match . matches [ 1 ] ) . toBe ( "E" . substring ( 0 , 1 ) ) ;
682
682
} ) ;
683
- xit ( "line: 155 - requires triage" , ( ) => { } ) ;
683
+ it ( "line: 155 - matches ([\\da-f:]+)$ against '::'" , ( ) => {
684
+ const match = exec ( "([\\da-f:]+)$" , "::" , "i" ) ;
685
+ expect ( match . matches [ 0 ] ) . toBe ( "::" . substring ( 0 , 2 ) ) ;
686
+ expect ( match . matches [ 1 ] ) . toBe ( "::" . substring ( 0 , 2 ) ) ;
687
+ } ) ;
684
688
it ( "line: 156 - matches ([\\da-f:]+)$ against '5f03:12C0::932e'" , ( ) => {
685
689
const match = exec ( "([\\da-f:]+)$" , "5f03:12C0::932e" , "i" ) ;
686
690
expect ( match . matches [ 0 ] ) . toBe ( "5f03:12C0::932e" . substring ( 0 , 15 ) ) ;
@@ -1070,8 +1074,32 @@ xit("line: 257 - non capturing groups not supported", () => {});
1070
1074
xit ( "line: 258 - back references are not supported" , ( ) => { } ) ;
1071
1075
xit ( "line: 259 - back references are not supported" , ( ) => { } ) ;
1072
1076
xit ( "line: 260 - back references are not supported" , ( ) => { } ) ;
1073
- xit ( "line: 261 - requires triage" , ( ) => { } ) ;
1074
- xit ( "line: 262 - requires triage" , ( ) => { } ) ;
1077
+ it ( "line: 261 - matches ^From +([^ ]+) +[a-zA-Z][a-zA-Z][a-zA-Z] +[a-zA-Z][a-zA-Z][a-zA-Z] +[0-9]?[0-9] +[0-9][0-9]:[0-9][0-9] against 'From abcd Mon Sep 01 12:33:02 1997'" , ( ) => {
1078
+ const match = exec (
1079
+ "^From +([^ ]+) +[a-zA-Z][a-zA-Z][a-zA-Z] +[a-zA-Z][a-zA-Z][a-zA-Z] +[0-9]?[0-9] +[0-9][0-9]:[0-9][0-9]" ,
1080
+ "From abcd Mon Sep 01 12:33:02 1997" ,
1081
+ ""
1082
+ ) ;
1083
+ expect ( match . matches [ 0 ] ) . toBe (
1084
+ "From abcd Mon Sep 01 12:33:02 1997" . substring ( 0 , 27 )
1085
+ ) ;
1086
+ expect ( match . matches [ 1 ] ) . toBe (
1087
+ "From abcd Mon Sep 01 12:33:02 1997" . substring ( 5 , 9 )
1088
+ ) ;
1089
+ } ) ;
1090
+ it ( "line: 262 - matches ^From\\s+\\S+\\s+([a-zA-Z]{3}\\s+){2}\\d{1,2}\\s+\\d\\d:\\d\\d against 'From abcd Mon Sep 01 12:33:02 1997'" , ( ) => {
1091
+ const match = exec (
1092
+ "^From\\s+\\S+\\s+([a-zA-Z]{3}\\s+){2}\\d{1,2}\\s+\\d\\d:\\d\\d" ,
1093
+ "From abcd Mon Sep 01 12:33:02 1997" ,
1094
+ ""
1095
+ ) ;
1096
+ expect ( match . matches [ 0 ] ) . toBe (
1097
+ "From abcd Mon Sep 01 12:33:02 1997" . substring ( 0 , 27 )
1098
+ ) ;
1099
+ expect ( match . matches [ 1 ] ) . toBe (
1100
+ "From abcd Mon Sep 01 12:33:02 1997" . substring ( 15 , 19 )
1101
+ ) ;
1102
+ } ) ;
1075
1103
xit ( "line: 263 - requires triage" , ( ) => { } ) ;
1076
1104
xit ( "line: 264 - requires triage" , ( ) => { } ) ;
1077
1105
xit ( "line: 265 - test cases with CRs not supported yet!" , ( ) => { } ) ;
@@ -1084,7 +1112,10 @@ xit("line: 271 - non capturing groups not supported", () => {});
1084
1112
xit ( "line: 272 - non capturing groups not supported" , ( ) => { } ) ;
1085
1113
xit ( "line: 273 - non capturing groups not supported" , ( ) => { } ) ;
1086
1114
xit ( "line: 274 - non capturing groups not supported" , ( ) => { } ) ;
1087
- xit ( "line: 281 - requires triage" , ( ) => { } ) ;
1115
+ it ( "line: 281 - matches ^abcd#rhubarb against 'abcd'" , ( ) => {
1116
+ const match = exec ( "^abcd#rhubarb" , "abcd" , "" ) ;
1117
+ expect ( match . matches [ 0 ] ) . toBe ( "abcd" . substring ( 0 , 4 ) ) ;
1118
+ } ) ;
1088
1119
xit ( "line: 282 - back references are not supported" , ( ) => { } ) ;
1089
1120
xit ( "line: 283 - back references are not supported" , ( ) => { } ) ;
1090
1121
xit ( "line: 284 - back references are not supported" , ( ) => { } ) ;
@@ -1266,7 +1297,7 @@ it("line: 1154 - matches ^abc$ against 'abc'", () => {
1266
1297
xit ( "line: 1155 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1267
1298
xit ( "line: 1156 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1268
1299
xit ( "line: 1157 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1269
- xit ( "line: 1158 - requires triage " , ( ) => { } ) ;
1300
+ xit ( "line: 1158 - test regex contains syntax not supported in JS " , ( ) => { } ) ;
1270
1301
xit ( "line: 1159 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1271
1302
xit ( "line: 1160 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1272
1303
xit ( "line: 1161 - test cases with CRs not supported yet!" , ( ) => { } ) ;
@@ -1378,15 +1409,13 @@ xit("line: 1228 - back references are not supported", () => {});
1378
1409
xit ( "line: 1229 - back references are not supported" , ( ) => { } ) ;
1379
1410
xit ( "line: 1230 - back references are not supported" , ( ) => { } ) ;
1380
1411
xit ( "line: 1231 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1381
- xit ( "line: 1232 - requires triage" , ( ) => { } ) ;
1382
- xit ( "line: 1233 - requires triage" , ( ) => { } ) ;
1383
- xit ( "line: 1234 - requires triage" , ( ) => { } ) ;
1384
- xit ( "line: 1235 - requires triage" , ( ) => { } ) ;
1385
- it ( "line: 1236 - matches ^([^a])([^\\\b])([^c]*)([^d]{3,4}) against 'anything'" , ( ) => {
1386
- expectNotMatch ( "^([^a])([^\\\b])([^c]*)([^d]{3,4})" , [ "anything" ] ) ;
1387
- } ) ;
1388
- xit ( "line: 1237 - requires triage" , ( ) => { } ) ;
1389
- xit ( "line: 1238 - requires triage" , ( ) => { } ) ;
1412
+ xit ( "line: 1232 - word boundary class not supported yet!" , ( ) => { } ) ;
1413
+ xit ( "line: 1233 - word boundary class not supported yet!" , ( ) => { } ) ;
1414
+ xit ( "line: 1234 - word boundary class not supported yet!" , ( ) => { } ) ;
1415
+ xit ( "line: 1235 - word boundary class not supported yet!" , ( ) => { } ) ;
1416
+ xit ( "line: 1236 - word boundary class not supported yet!" , ( ) => { } ) ;
1417
+ xit ( "line: 1237 - word boundary class not supported yet!" , ( ) => { } ) ;
1418
+ xit ( "line: 1238 - word boundary class not supported yet!" , ( ) => { } ) ;
1390
1419
xit ( "line: 1239 - requires triage" , ( ) => { } ) ;
1391
1420
it ( "line: 1240 - matches [^a] against 'Abc'" , ( ) => {
1392
1421
const match = exec ( "[^a]" , "Abc" , "" ) ;
@@ -1507,7 +1536,7 @@ xit("line: 1276 - non capturing groups not supported", () => {});
1507
1536
xit ( "line: 1277 - non capturing groups not supported" , ( ) => { } ) ;
1508
1537
xit ( "line: 1278 - non capturing groups not supported" , ( ) => { } ) ;
1509
1538
xit ( "line: 1279 - non capturing groups not supported" , ( ) => { } ) ;
1510
- xit ( "line: 1280 - requires triage " , ( ) => { } ) ;
1539
+ xit ( "line: 1280 - word boundary class not supported yet! " , ( ) => { } ) ;
1511
1540
it ( "line: 1281 - matches foo(.*)bar against 'The food is under the bar in the barn.'" , ( ) => {
1512
1541
const match = exec (
1513
1542
"foo(.*)bar" ,
@@ -1543,7 +1572,7 @@ it("line: 1287 - matches (.*)(\\d+)$ against 'I have 2 numbers: 53147'", () => {
1543
1572
expect ( match . matches [ 2 ] ) . toBe ( "I have 2 numbers: 53147" . substring ( 22 , 23 ) ) ;
1544
1573
} ) ;
1545
1574
xit ( "line: 1288 - lazy quantifiers are not supported" , ( ) => { } ) ;
1546
- xit ( "line: 1289 - requires triage " , ( ) => { } ) ;
1575
+ xit ( "line: 1289 - word boundary class not supported yet! " , ( ) => { } ) ;
1547
1576
it ( "line: 1290 - matches (.*\\D)(\\d+)$ against 'I have 2 numbers: 53147'" , ( ) => {
1548
1577
const match = exec ( "(.*\\D)(\\d+)$" , "I have 2 numbers: 53147" , "" ) ;
1549
1578
expect ( match . matches [ 0 ] ) . toBe ( "I have 2 numbers: 53147" . substring ( 0 , 23 ) ) ;
@@ -1888,8 +1917,8 @@ it("line: 1406 - matches ab\\d{0}e against 'ab1e '", () => {
1888
1917
xit ( "line: 1407 - test cases with quotes are not supported yet!" , ( ) => { } ) ;
1889
1918
xit ( "line: 1408 - test cases with quotes are not supported yet!" , ( ) => { } ) ;
1890
1919
xit ( "line: 1409 - lazy quantifiers are not supported" , ( ) => { } ) ;
1891
- xit ( "line: 1410 - requires triage " , ( ) => { } ) ;
1892
- xit ( "line: 1411 - test doesn't support NULL " , ( ) => { } ) ;
1920
+ xit ( "line: 1410 - word boundary class not supported yet! " , ( ) => { } ) ;
1921
+ xit ( "line: 1411 - word boundary class not supported yet! " , ( ) => { } ) ;
1893
1922
xit ( "line: 1412 - requires triage" , ( ) => { } ) ;
1894
1923
xit ( "line: 1413 - requires triage" , ( ) => { } ) ;
1895
1924
it ( "line: 1414 - matches a[^a]b against 'acb'" , ( ) => {
0 commit comments