You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[gardening] Remove some optional usage from the tests.
In some cases in the tests, even if an API returns an optional, we know
that it should never be optional, and it might create warnings in later
code when the optional is interpolated into a string (for example).
Change those cases into using `.unwrapped()` to get a non-optional type,
and create a big error if a nil is actually received.
This should remove a bunch of warnings while compiling the tests.
XCTAssertEqual(UTF16Length,128,"NSString should successfully produce an external UTF16 representation with a length of 128 but got \(UTF16Length) bytes")
XCTAssertEqual(ISOLatin1Length,63,"NSString should successfully produce an external ISOLatin1 representation with a length of 63 but got \(ISOLatin1Length) bytes")
1200
1200
}
1201
1201
1202
1202
do{
1203
1203
letstring=NSString(string:"🐢 encoding all the way down. 🐢🐢🐢")
XCTAssertEqual(UTF16Length,74,"NSString should successfully produce an external UTF16 representation with a length of 74 but got \(UTF16Length) bytes")
0 commit comments