diff options
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; } |
