@@ -84,16 +84,12 @@ var testCharacters = [
8484 " \u{0061} \u{0300} \u{0300} \u{0300} \u{0300} " , // UTF-8: 9 bytes
8585]
8686
87- // Only run it on ObjC platforms. Supported Linux versions do not have a
88- // recent enough ICU
89- #if _runtime(_ObjC)
9087testCharacters += [
9188 " \u{0061} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} " , // UTF-8: 11 bytes
9289 " \u{0061} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} " , // UTF-8: 13 bytes
9390 " \u{0061} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} " , // UTF-8: 15 bytes
9491 " \u{0061} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} " , // UTF-8: 17 bytes
9592]
96- #endif
9793
9894testCharacters += [
9995 // U+00A9 COPYRIGHT SIGN
@@ -105,8 +101,6 @@ testCharacters += [
105101 " \u{00a9} \u{0300} \u{0300} \u{0300} \u{0300} " , // UTF-8: 10 bytes
106102]
107103
108- // Only run it on recent enough versions of ICU
109- #if _runtime(_ObjC)
110104if #available( iOS 11 . 0 , macOS 10 . 13 , tvOS 11 . 0 , watchOS 4 . 0 , * ) {
111105 testCharacters += [
112106 " \u{00a9} \u{0300} \u{0300} \u{0300} \u{0300} \u{0300} " , // UTF-8: 12 bytes
@@ -117,7 +111,6 @@ if #available(iOS 11.0, macOS 10.13, tvOS 11.0, watchOS 4.0, *) {
117111 " 👩👩👦👦 " , // UTF-8: 25 bytes
118112 ]
119113}
120- #endif
121114
122115func randomGraphemeCluster( _ minSize: Int , _ maxSize: Int ) -> String {
123116 let n = Int . random ( in: ( minSize + 1 ) ..< maxSize)
@@ -224,9 +217,6 @@ CharacterTests.test("CR-LF") {
224217}
225218
226219CharacterTests . test ( " Unicode 9 grapheme breaking " ) {
227- // Only run it on ObjC platforms. Supported Linux versions do not have a
228- // recent enough ICU for Unicode 9 support.
229- #if _runtime(_ObjC)
230220 // Check for Unicode 9 or later
231221 guard #available( iOS 10 . 0 , macOS 10 . 12 , * ) else { return }
232222
@@ -241,7 +231,6 @@ CharacterTests.test("Unicode 9 grapheme breaking") {
241231 let skinTone = " 👋👋🏻👋🏼👋🏽👋🏾👋🏿 "
242232 expectEqual ( 6 , skinTone. count)
243233 expectEqual ( skinTone. reversed ( ) . count, skinTone. count)
244- #endif
245234}
246235
247236/// Test that a given `String` can be transformed into a `Character` and back
0 commit comments