From 6d8abddbc851df54d40af0c0872752d1a251b843 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 9 Jun 2022 17:26:49 -0700 Subject: [PATCH] Tests: explicitly convert the character type The platform character type is different across Unix and Windows. Explicitly convert the value to the expected type. --- Tests/SystemTests/SystemCharTest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/SystemTests/SystemCharTest.swift b/Tests/SystemTests/SystemCharTest.swift index 368f21a..0ec5411 100644 --- a/Tests/SystemTests/SystemCharTest.swift +++ b/Tests/SystemTests/SystemCharTest.swift @@ -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