mirror of
https://github.com/apple/swift-system
synced 2026-11-24 04:38:14 +00:00
Merge pull request #95 from compnerd/chartype
Tests: explicitly convert the character type
This commit is contained in:
1 file changed
+1
-1
@@ -25,7 +25,7 @@ final class SystemCharTest: XCTestCase {
|
||||
|
||||
// non printable
|
||||
for value in 0..<(UInt8(ascii: " ")) {
|
||||
XCTAssertFalse(SystemChar(codeUnit: value).isLetter)
|
||||
XCTAssertFalse(SystemChar(codeUnit: CInterop.PlatformUnicodeEncoding.CodeUnit(value)).isLetter)
|
||||
}
|
||||
XCTAssertFalse(SystemChar(codeUnit: 0x7F).isLetter) // DEL
|
||||
|
||||
|
||||
Reference in new issue
Block a user