()
| 29 | |
| 30 | @test("c strings") |
| 31 | def _(): |
| 32 | ptr = c_malloc(2) |
| 33 | strcpy(ptr, "a") |
| 34 | assert ~cast(ptr, bytes) == b"a" |
| 35 | c_free(ptr) |
| 36 | |
| 37 | assert strlen(b"test") == 4 |
| 38 | |
| 39 | |
| 40 | @test("format strings") |
nothing calls this directly
no test coverage detected