Skip to content

Commit f0e3209

Browse files
committed
[test] Disable test on Linux that's ICU version-specific
1 parent 8ce2a36 commit f0e3209

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/stdlib/CharacterProperties.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,14 @@ CharacterPropertiesTests.test("Casing") {
142142
expectTrue(Character("π").isLowercase)
143143

144144
expectEqual("SS", Character("ß").uppercased())
145+
146+
// Some versions of ICU on Linux (62.1) have a bug producing the wrong value
147+
// when lowercasing "ẞ". Darwin platforms never shipped this version, so
148+
// conditionally test based on platform.
149+
#if _runtime(_ObjC)
145150
expectEqual("ß", Character("").lowercased())
151+
#endif
152+
146153
expectEqual("и", Character("И").lowercased())
147154
expectEqual("И", Character("и").uppercased())
148155
expectEqual("π", Character("Π").lowercased())

0 commit comments

Comments
 (0)