Skip to content

Commit a5c43b1

Browse files
committed
Tests: adjust invalid character
Adjust the injected character to be an invalid UTF-16 and UTF-8 character. This is required to make the tests pass on Windows.
1 parent 025bcb1 commit a5c43b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SystemTests/SystemStringTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ extension SystemStringTest {
288288
source.withUnsafeBufferPointer {
289289
XCTAssertEqual(str, String(validatingPlatformString: $0.baseAddress!))
290290
}
291-
source[1] = CInterop.PlatformChar(truncatingIfNeeded: 0xffff)
291+
source[1] = CInterop.PlatformChar(truncatingIfNeeded: 0xdfff)
292292
str = String(validatingPlatformString: source)
293293
XCTAssertNil(str)
294294
}

0 commit comments

Comments
 (0)