Adopted the standard withCString for C strings throughout the library.
This commit is contained in:
@@ -69,8 +69,7 @@ import Testing
|
||||
defer { copy.deallocate() }
|
||||
#expect(String(playdateCString: copy) == original)
|
||||
|
||||
let viaClosure = original.withPlaydateCString { String(playdateCString: $0) }
|
||||
#expect(viaClosure == original)
|
||||
#expect(String(playdateCString: nil) == nil)
|
||||
}
|
||||
|
||||
@Test func dateTimeMirrorsCStruct() {
|
||||
|
||||
Reference in New Issue
Block a user