@@ -1022,6 +1022,8 @@ extension RegexTests {
10221022 ( " 123 \n 456 \n " , nil ) ,
10231023 ( " 123 456 " , " 456 " ) )
10241024
1025+ // FIXME: Keep this until _wordIndex and friends are
1026+ #if os(Linux)
10251027 firstMatchTests (
10261028 #"\d+\b"# ,
10271029 ( " 123 " , " 123 " ) ,
@@ -1039,6 +1041,7 @@ extension RegexTests {
10391041 ( " 123 " , " 23 " ) ,
10401042 ( " 123 " , " 23 " ) ,
10411043 ( " 123 456 " , " 23 " ) )
1044+ #endif
10421045
10431046 // TODO: \G and \K
10441047 do {
@@ -1069,6 +1072,8 @@ extension RegexTests {
10691072 ( " Sol Cafe " , nil ) , xfail: true )
10701073 }
10711074
1075+ // FIXME: Keep this until _wordIndex and friends are
1076+ #if os(Linux)
10721077 func testLevel2WordBoundaries( ) {
10731078 // MARK: Level 2 Word Boundaries
10741079 firstMatchTest ( #"\b😊\b"# , input: " 🔥😊👍 " , match: " 😊 " )
@@ -1085,6 +1090,7 @@ extension RegexTests {
10851090 firstMatchTest ( #"can\B\'\Bt"# , input: " I can't do that. " , match: " can't " )
10861091 firstMatchTest ( #"\b÷\b"# , input: " 3 ÷ 3 = 1 " , match: " ÷ " )
10871092 }
1093+ #endif
10881094
10891095 func testMatchGroups( ) {
10901096 // MARK: Groups
@@ -1359,6 +1365,8 @@ extension RegexTests {
13591365 xfail: true
13601366 )
13611367
1368+ // FIXME: Keep this until _wordIndex and friends are
1369+ #if os(Linux)
13621370 // HTML tags
13631371 matchTest (
13641372 #"<([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>.*?</\1>"# ,
@@ -1376,6 +1384,7 @@ extension RegexTests {
13761384 ( " pass me the the kettle " , [ " the " ] ) ,
13771385 ( " this doesn't have any " , nil )
13781386 )
1387+ #endif
13791388
13801389 // Floats
13811390 flatCaptureTest (
@@ -1483,6 +1492,8 @@ extension RegexTests {
14831492 ( " aeiou " , true ) ,
14841493 ( " åe \u{301} ïôú " , false ) )
14851494
1495+ // FIXME: Keep this until _wordIndex and friends are
1496+ #if os(Linux)
14861497 matchTest (
14871498 #"abcd\b.+"# ,
14881499 ( " abcd ef " , true ) ,
@@ -1498,6 +1509,7 @@ extension RegexTests {
14981509 ( " abcd ef " , true ) ,
14991510 ( " abcdef " , false ) ,
15001511 ( " abcdéf " , false ) )
1512+ #endif
15011513
15021514 // 'S' ASCII-only spaces
15031515 matchTest (
0 commit comments