- Test runner will also check for leaks.

- `write` of qoi would leak memory.
- Issue when having an empty `Path` or just "."
- `set_env` would leak memory.
This commit is contained in:
Christoffer Lerno
2025-02-10 00:39:02 +01:00
parent 63f619e5b6
commit c4212c4649
20 changed files with 81 additions and 41 deletions

View File

@@ -3,6 +3,7 @@ module string_test;
fn void test_clear() @test
{
DString s = dstring::new_with_capacity(32);
defer s.free();
assert(s.len() == 0);
assert(s.capacity() == 32);
s.append_repeat('x', 63);