Skip to content

Commit c4c430e

Browse files
committed
[test] Don't check for "HK$" in stdlib/TestLocale.swift on older OS X
Apparently this changed at some point in the past (it used to just be "$"). The actual value isn't so important, so just skip that part. Part of rdar://problem/44866579
1 parent b475568 commit c4c430e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/stdlib/TestLocale.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ class TestLocale : TestLocaleSuper {
9494

9595
expectEqual(".", locale.decimalSeparator)
9696
expectEqual(",", locale.groupingSeparator)
97-
expectEqual("HK$", locale.currencySymbol)
97+
if #available(macOS 10.11, *) {
98+
expectEqual("HK$", locale.currencySymbol)
99+
}
98100
expectEqual("HKD", locale.currencyCode)
99101

100102
expectTrue(Locale.availableIdentifiers.count > 0)

0 commit comments

Comments
 (0)