We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75741a9 commit 7a05d86Copy full SHA for 7a05d86
test/stdlib/Character.swift
@@ -199,6 +199,9 @@ CharacterTests.test("CR-LF") {
199
}
200
201
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)
205
let flags = "🇺🇸🇨🇦🇩🇰🏳️🌈"
206
expectEqual(4, flags.count)
207
expectEqual(flags.reversed().count, flags.count)
@@ -210,6 +213,7 @@ CharacterTests.test("Unicode 9 grapheme breaking") {
210
213
let skinTone = "👋👋🏻👋🏼👋🏽👋🏾👋🏿"
211
214
expectEqual(6, skinTone.count)
212
215
expectEqual(skinTone.reversed().count, skinTone.count)
216
+#endif
217
218
219
/// Test that a given `String` can be transformed into a `Character` and back
0 commit comments