Skip to content

Commit 63cdebe

Browse files
authored
Merge pull request #95 from compnerd/chartype
Tests: explicitly convert the character type
2 parents 97a03f9 + 6d8abdd commit 63cdebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SystemTests/SystemCharTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class SystemCharTest: XCTestCase {
2525

2626
// non printable
2727
for value in 0..<(UInt8(ascii: " ")) {
28-
XCTAssertFalse(SystemChar(codeUnit: value).isLetter)
28+
XCTAssertFalse(SystemChar(codeUnit: CInterop.PlatformUnicodeEncoding.CodeUnit(value)).isLetter)
2929
}
3030
XCTAssertFalse(SystemChar(codeUnit: 0x7F).isLetter) // DEL
3131

0 commit comments

Comments
 (0)