Skip to content

Commit 92d56cb

Browse files
authored
Merge pull request #20447 from milseman/linux_character
[test] Disable new emoji testing on Linux
2 parents 5fbe321 + 863b497 commit 92d56cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/Character.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ testCharacters += [
106106
]
107107

108108
// Only run it on recent enough versions of ICU
109+
#if _runtime(_ObjC)
109110
if #available(iOS 11.0, macOS 10.13, tvOS 11.0, watchOS 4.0, *) {
110111
testCharacters += [
111112
"\u{00a9}\u{0300}\u{0300}\u{0300}\u{0300}\u{0300}", // UTF-8: 12 bytes
@@ -116,6 +117,7 @@ if #available(iOS 11.0, macOS 10.13, tvOS 11.0, watchOS 4.0, *) {
116117
"👩‍👩‍👦‍👦", // UTF-8: 25 bytes
117118
]
118119
}
120+
#endif
119121

120122
func randomGraphemeCluster(_ minSize: Int, _ maxSize: Int) -> String {
121123
let n = Int.random(in: (minSize + 1) ..< maxSize)

0 commit comments

Comments
 (0)