Skip to content

Commit 6d8abdd

Browse files
committed
Tests: explicitly convert the character type
The platform character type is different across Unix and Windows. Explicitly convert the value to the expected type.
1 parent 025bcb1 commit 6d8abdd

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)