mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
... and add a test to ensure that the next attempt at writing this optimization won't introduce a regression.
21 lines
491 B
Swift
21 lines
491 B
Swift
// RUN: %target-run-simple-swiftgyb
|
|
// REQUIRES: executable_test
|
|
|
|
// This test requires that the standard library calls ICU
|
|
// directly. It is not specific to Linux, it is just that on
|
|
// Apple platforms we are using the NSString bridge right now.
|
|
|
|
// REQUIRES: OS=linux-gnu
|
|
|
|
import StdlibUnittest
|
|
|
|
var StringTests = TestSuite("StringTests")
|
|
|
|
StringTests.test("smoketest") {
|
|
expectEqual("i\u{0307}", "\u{0130}".lowercased())
|
|
expectEqual("SS", "\u{00df}".uppercased())
|
|
}
|
|
|
|
runAllTests()
|
|
|