diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-23 14:42:48 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-23 14:42:48 +0200 |
| commit | 034d197e7eb3749f9f5b347595abdcfe2d086965 (patch) | |
| tree | ba1237cdf7f9a98c39cc79b647baf89221de48be /test_string.c | |
| parent | b997e31ac151679a516fd76da45bb36931a13e40 (diff) | |
fix(json): Reduce memory usage and fix memory bugs
Diffstat (limited to 'test_string.c')
| -rw-r--r-- | test_string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test_string.c b/test_string.c index 7b37e0d..0d6dd71 100644 --- a/test_string.c +++ b/test_string.c @@ -10,10 +10,10 @@ i32 test_string_copy() { Arena perm = Arena_new(128e3); Str src = S("Hello"); - Str *cpy = Str_copy(&perm, src.data, src.len); + Str cpy = Str_copy(&perm, src.data, src.len); - t_assert(Str_equals(src, *cpy)); - t_assert_equal(Arena_get_used(perm), 21); + t_assert(Str_equals(src, cpy)); + t_assert_equal(Arena_get_used(perm), 5); return 0; } |
