@@ -1022,6 +1022,8 @@ extension RegexTests {
1022
1022
( " 123 \n 456 \n " , nil ) ,
1023
1023
( " 123 456 " , " 456 " ) )
1024
1024
1025
+ // FIXME: Keep this until _wordIndex and friends are
1026
+ #if os(Linux)
1025
1027
firstMatchTests (
1026
1028
#"\d+\b"# ,
1027
1029
( " 123 " , " 123 " ) ,
@@ -1039,6 +1041,7 @@ extension RegexTests {
1039
1041
( " 123 " , " 23 " ) ,
1040
1042
( " 123 " , " 23 " ) ,
1041
1043
( " 123 456 " , " 23 " ) )
1044
+ #endif
1042
1045
1043
1046
// TODO: \G and \K
1044
1047
do {
@@ -1069,6 +1072,8 @@ extension RegexTests {
1069
1072
( " Sol Cafe " , nil ) , xfail: true )
1070
1073
}
1071
1074
1075
+ // FIXME: Keep this until _wordIndex and friends are
1076
+ #if os(Linux)
1072
1077
func testLevel2WordBoundaries( ) {
1073
1078
// MARK: Level 2 Word Boundaries
1074
1079
firstMatchTest ( #"\b😊\b"# , input: " 🔥😊👍 " , match: " 😊 " )
@@ -1085,6 +1090,7 @@ extension RegexTests {
1085
1090
firstMatchTest ( #"can\B\'\Bt"# , input: " I can't do that. " , match: " can't " )
1086
1091
firstMatchTest ( #"\b÷\b"# , input: " 3 ÷ 3 = 1 " , match: " ÷ " )
1087
1092
}
1093
+ #endif
1088
1094
1089
1095
func testMatchGroups( ) {
1090
1096
// MARK: Groups
@@ -1359,6 +1365,8 @@ extension RegexTests {
1359
1365
xfail: true
1360
1366
)
1361
1367
1368
+ // FIXME: Keep this until _wordIndex and friends are
1369
+ #if os(Linux)
1362
1370
// HTML tags
1363
1371
matchTest (
1364
1372
#"<([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>.*?</\1>"# ,
@@ -1376,6 +1384,7 @@ extension RegexTests {
1376
1384
( " pass me the the kettle " , [ " the " ] ) ,
1377
1385
( " this doesn't have any " , nil )
1378
1386
)
1387
+ #endif
1379
1388
1380
1389
// Floats
1381
1390
flatCaptureTest (
@@ -1483,6 +1492,8 @@ extension RegexTests {
1483
1492
( " aeiou " , true ) ,
1484
1493
( " åe \u{301} ïôú " , false ) )
1485
1494
1495
+ // FIXME: Keep this until _wordIndex and friends are
1496
+ #if os(Linux)
1486
1497
matchTest (
1487
1498
#"abcd\b.+"# ,
1488
1499
( " abcd ef " , true ) ,
@@ -1498,6 +1509,7 @@ extension RegexTests {
1498
1509
( " abcd ef " , true ) ,
1499
1510
( " abcdef " , false ) ,
1500
1511
( " abcdéf " , false ) )
1512
+ #endif
1501
1513
1502
1514
// 'S' ASCII-only spaces
1503
1515
matchTest (
0 commit comments