mirror of
https://github.com/apple/swift-system
synced 2026-11-27 05:04:27 +00:00
Test SystemString.string property consistency
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user