Test SystemString.string property consistency

This commit is contained in:
Guillaume Lessard committed 2024-03-08 12:13:04 -08:00
1 parent afb7fa4eef
commit c86758849a
1 file changed
+5
@@ -254,6 +254,11 @@ final class SystemStringTest: XCTestCase {
XCTAssert(str == "abcd")
}
func testStringProperty() {
let source: [CInterop.PlatformChar] = [0x61, 0x62, 0, 0x63]
let str = SystemString(platformString: source)
XCTAssertEqual(str.string, str[...].string)
}
}
extension SystemStringTest {