We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8f954e + 368e95b commit 2f640f1Copy full SHA for 2f640f1
test/stdlib/Character.swift
@@ -202,6 +202,9 @@ 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
+ // Check for Unicode 9 or later
206
+ guard #available(iOS 10.0, macOS 10.12, *) else { return }
207
+
208
let flags = "🇺🇸🇨🇦🇩🇰🏳️🌈"
209
expectEqual(4, flags.count)
210
expectEqual(flags.reversed().count, flags.count)
0 commit comments