mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Most ridiculous possible test mistake
This commit is contained in:
@@ -199,7 +199,7 @@ StringBridgeTests.test("Equal UTF16 lengths but unequal UTF8") {
|
||||
let utf8 = "чебурашка@ящик-с-апельсинами.рф" //Native, UTF16 count: 31, UTF8 count: 58
|
||||
let nsascii = "2166002315@874404110.1042078977" as NSString //Non-native, UTF16 count: 31, UTF8 count: 31
|
||||
let nsutf8 = String(decoding: utf8.utf8, as: UTF8.self) as NSString //bridged native
|
||||
expectTrue(nsutf8.isEqual(nsascii))
|
||||
expectFalse(nsutf8.isEqual(nsascii))
|
||||
}
|
||||
|
||||
runAllTests()
|
||||
|
||||
Reference in New Issue
Block a user