@@ -1087,11 +1087,16 @@ it("line: 261 - matches ^From +([^ ]+) +[a-zA-Z][a-zA-Z][a-zA-Z] +[a-zA-Z][a-zA-
1087
1087
"From abcd Mon Sep 01 12:33:02 1997" . substring ( 5 , 9 )
1088
1088
) ;
1089
1089
} ) ;
1090
- xit ( "line: 262 - requires triage" , ( ) => { } ) ;
1091
- xit ( "line: 263 - requires triage" , ( ) => { } ) ;
1092
- xit ( "line: 264 - requires triage" , ( ) => { } ) ;
1090
+ xit ( "line: 262 - issues with repeated capture groups" , ( ) => { } ) ;
1091
+ xit ( "line: 263 - issues with repeated capture groups" , ( ) => { } ) ;
1092
+ it ( "line: 264 - matches ^From\\s+\\S+\\s+([a-zA-Z]{3}\\s+){2}\\d{1,2}\\s+\\d\\d:\\d\\d against 'From abcd Sep 01 12:33:02 1997'" , ( ) => {
1093
+ expectNotMatch (
1094
+ "^From\\s+\\S+\\s+([a-zA-Z]{3}\\s+){2}\\d{1,2}\\s+\\d\\d:\\d\\d" ,
1095
+ [ "From abcd Sep 01 12:33:02 1997" ]
1096
+ ) ;
1097
+ } ) ;
1093
1098
xit ( "line: 265 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1094
- xit ( "line: 266 - requires triage " , ( ) => { } ) ;
1099
+ xit ( "line: 266 - test cases with CRs not supported yet! " , ( ) => { } ) ;
1095
1100
xit ( "line: 267 - non capturing groups not supported" , ( ) => { } ) ;
1096
1101
xit ( "line: 268 - non capturing groups not supported" , ( ) => { } ) ;
1097
1102
xit ( "line: 269 - non capturing groups not supported" , ( ) => { } ) ;
@@ -1100,7 +1105,7 @@ xit("line: 271 - non capturing groups not supported", () => {});
1100
1105
xit ( "line: 272 - non capturing groups not supported" , ( ) => { } ) ;
1101
1106
xit ( "line: 273 - non capturing groups not supported" , ( ) => { } ) ;
1102
1107
xit ( "line: 274 - non capturing groups not supported" , ( ) => { } ) ;
1103
- xit ( "line: 281 - requires triage " , ( ) => { } ) ;
1108
+ xit ( "line: 281 - test regex contains syntax not supported in JS " , ( ) => { } ) ;
1104
1109
xit ( "line: 282 - back references are not supported" , ( ) => { } ) ;
1105
1110
xit ( "line: 283 - back references are not supported" , ( ) => { } ) ;
1106
1111
xit ( "line: 284 - back references are not supported" , ( ) => { } ) ;
@@ -1109,7 +1114,7 @@ xit("line: 286 - non capturing groups not supported", () => {});
1109
1114
xit ( "line: 287 - non capturing groups not supported" , ( ) => { } ) ;
1110
1115
xit ( "line: 288 - non capturing groups not supported" , ( ) => { } ) ;
1111
1116
xit ( "line: 289 - non capturing groups not supported" , ( ) => { } ) ;
1112
- xit ( "line: 290 - requires triage " , ( ) => { } ) ;
1117
+ xit ( "line: 290 - the test behaviour differs between PCRE and JS " , ( ) => { } ) ;
1113
1118
xit ( "line: 291 - lazy quantifiers are not supported" , ( ) => { } ) ;
1114
1119
xit ( "line: 292 - lazy quantifiers are not supported" , ( ) => { } ) ;
1115
1120
xit ( "line: 293 - lazy quantifiers are not supported" , ( ) => { } ) ;
@@ -1132,8 +1137,26 @@ xit("line: 1085 - back references are not supported", () => {});
1132
1137
xit ( "line: 1086 - test encoding issue" , ( ) => { } ) ;
1133
1138
xit ( "line: 1087 - requires triage" , ( ) => { } ) ;
1134
1139
xit ( "line: 1088 - requires triage" , ( ) => { } ) ;
1135
- xit ( "line: 1089 - requires triage" , ( ) => { } ) ;
1136
- xit ( "line: 1090 - requires triage" , ( ) => { } ) ;
1140
+ it ( "line: 1089 - matches abc\\\x0def\\x00pqr\\x000xyz\\x0000AB against 'abc456 abc\\x0def\x00pqr\x000xyz\x0000ABCDE'" , ( ) => {
1141
+ const match = exec (
1142
+ "abc\\\x0def\\x00pqr\\x000xyz\\x0000AB" ,
1143
+ "abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE" ,
1144
+ ""
1145
+ ) ;
1146
+ expect ( match . matches [ 0 ] ) . toBe (
1147
+ "abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE" . substring ( 7 , 27 )
1148
+ ) ;
1149
+ } ) ;
1150
+ it ( "line: 1090 - matches abc\\\x0def\\x00pqr\\x000xyz\\x0000AB against 'abc456 abc\\x0def\x00pqr\x000xyz\x0000ABCDE'" , ( ) => {
1151
+ const match = exec (
1152
+ "abc\\\x0def\\x00pqr\\x000xyz\\x0000AB" ,
1153
+ "abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE" ,
1154
+ ""
1155
+ ) ;
1156
+ expect ( match . matches [ 0 ] ) . toBe (
1157
+ "abc456 abc\x0def\x00pqr\x000xyz\x0000ABCDE" . substring ( 7 , 27 )
1158
+ ) ;
1159
+ } ) ;
1137
1160
xit ( "line: 1091 - back references are not supported" , ( ) => { } ) ;
1138
1161
xit ( "line: 1092 - back references are not supported" , ( ) => { } ) ;
1139
1162
xit ( "line: 1093 - back references are not supported" , ( ) => { } ) ;
@@ -1145,7 +1168,7 @@ xit("line 1098 - issue with parsing the test itself", () => {});
1145
1168
xit ( "line: 1099 - back references are not supported" , ( ) => { } ) ;
1146
1169
xit ( "line: 1100 - back references are not supported" , ( ) => { } ) ;
1147
1170
xit ( "line: 1101 - back references are not supported" , ( ) => { } ) ;
1148
- xit ( "line: 1102 - bug that needs filing " , ( ) => { } ) ;
1171
+ xit ( "line: 1102 - test contains an octal escape sequence " , ( ) => { } ) ;
1149
1172
xit ( "line 1103 - issue with parsing the test itself" , ( ) => { } ) ;
1150
1173
it ( "line: 1104 - matches ^\\s against '\\x0cxyz'" , ( ) => {
1151
1174
const match = exec ( "^\\s" , "\x0cxyz" , "" ) ;
@@ -1156,10 +1179,7 @@ it("line: 1105 - matches ^\\s against '\\fabc'", () => {
1156
1179
expect ( match . matches [ 0 ] ) . toBe ( "\fabc" . substring ( 0 , 1 ) ) ;
1157
1180
} ) ;
1158
1181
xit ( "line: 1106 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1159
- it ( "line: 1107 - matches ^\\s against '\\rabc'" , ( ) => {
1160
- const match = exec ( "^\\s" , "\rabc" , "" ) ;
1161
- expect ( match . matches [ 0 ] ) . toBe ( "\rabc" . substring ( 0 , 1 ) ) ;
1162
- } ) ;
1182
+ xit ( "line: 1107 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1163
1183
it ( "line: 1108 - matches ^\\s against '\\tabc'" , ( ) => {
1164
1184
const match = exec ( "^\\s" , "\tabc" , "" ) ;
1165
1185
expect ( match . matches [ 0 ] ) . toBe ( "\tabc" . substring ( 0 , 1 ) ) ;
@@ -1347,7 +1367,7 @@ xit("line 1186 - issue with parsing the test itself", () => {});
1347
1367
xit ( "line 1187 - issue with parsing the test itself" , ( ) => { } ) ;
1348
1368
xit ( "line 1188 - issue with parsing the test itself" , ( ) => { } ) ;
1349
1369
xit ( "line: 1189 - test indicates a malformed regex, whereas it appears OK in JS" , ( ) => { } ) ;
1350
- xit ( "line: 1190 - requires triage " , ( ) => { } ) ;
1370
+ xit ( "line: 1190 - test cases with CRs not supported yet! " , ( ) => { } ) ;
1351
1371
xit ( "line: 1191 - test cases with CRs not supported yet!" , ( ) => { } ) ;
1352
1372
it ( "line: 1192 - matches abc$ against 'abc'" , ( ) => {
1353
1373
const match = exec ( "abc$" , "abc" , "" ) ;
@@ -1386,7 +1406,10 @@ it("line: 1223 - matches ab\\gdef against 'abgdef'", () => {
1386
1406
const match = exec ( "ab\\gdef" , "abgdef" , "" ) ;
1387
1407
expect ( match . matches [ 0 ] ) . toBe ( "abgdef" . substring ( 0 , 6 ) ) ;
1388
1408
} ) ;
1389
- xit ( "line: 1224 - requires triage" , ( ) => { } ) ;
1409
+ it ( "line: 1224 - matches a{0}bc against 'bc'" , ( ) => {
1410
+ const match = exec ( "a{0}bc" , "bc" , "" ) ;
1411
+ expect ( match . matches [ 0 ] ) . toBe ( "bc" . substring ( 0 , 2 ) ) ;
1412
+ } ) ;
1390
1413
xit ( "line: 1225 - lazy quantifiers are not supported" , ( ) => { } ) ;
1391
1414
xit ( "line: 1226 - back references are not supported" , ( ) => { } ) ;
1392
1415
xit ( "line: 1227 - back references are not supported" , ( ) => { } ) ;
@@ -1904,7 +1927,7 @@ xit("line: 1408 - test cases with quotes are not supported yet!", () => {});
1904
1927
xit ( "line: 1409 - lazy quantifiers are not supported" , ( ) => { } ) ;
1905
1928
xit ( "line: 1410 - word boundary class not supported yet!" , ( ) => { } ) ;
1906
1929
xit ( "line: 1411 - word boundary class not supported yet!" , ( ) => { } ) ;
1907
- xit ( "line: 1412 - requires triage " , ( ) => { } ) ;
1930
+ xit ( "line: 1412 - test cases for NULL regexes not supported yet " , ( ) => { } ) ;
1908
1931
xit ( "line: 1413 - requires triage" , ( ) => { } ) ;
1909
1932
it ( "line: 1414 - matches a[^a]b against 'acb'" , ( ) => {
1910
1933
const match = exec ( "a[^a]b" , "acb" , "" ) ;
0 commit comments