Skip to content

Commit 7a05d86

Browse files
committed
[stdlib] Disable Unicode 9 test on Linux, depends on ICU version
1 parent 75741a9 commit 7a05d86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/stdlib/Character.swift

+4
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ CharacterTests.test("CR-LF") {
199199
}
200200

201201
CharacterTests.test("Unicode 9 grapheme breaking") {
202+
// Only run it on ObjC platforms. Supported Linux versions do not have a
203+
// recent enough ICU for Unicode 9 support.
204+
#if _runtime(_ObjC)
202205
let flags = "🇺🇸🇨🇦🇩🇰🏳️‍🌈"
203206
expectEqual(4, flags.count)
204207
expectEqual(flags.reversed().count, flags.count)
@@ -210,6 +213,7 @@ CharacterTests.test("Unicode 9 grapheme breaking") {
210213
let skinTone = "👋👋🏻👋🏼👋🏽👋🏾👋🏿"
211214
expectEqual(6, skinTone.count)
212215
expectEqual(skinTone.reversed().count, skinTone.count)
216+
#endif
213217
}
214218

215219
/// Test that a given `String` can be transformed into a `Character` and back

0 commit comments

Comments
 (0)