diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 17:06:53 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 17:09:42 +0200 |
| commit | 0be32393e54bed6bbf5890edba72b8808d276289 (patch) | |
| tree | ba83502753e64f0c60f5202a8d224b57b52cf14f /test_string.c | |
| parent | 85b0db24804e6a8a66f557ac8917596db5fc5d9f (diff) | |
format
Diffstat (limited to 'test_string.c')
| -rw-r--r-- | test_string.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test_string.c b/test_string.c index 59da739..ff55e67 100644 --- a/test_string.c +++ b/test_string.c @@ -2,18 +2,18 @@ #include "testing.h" int test_string_literal_equality() { - t_assert(Str_equals(S("Bonjour"), S("Bonjour"))); - return 0; + t_assert(Str_equals(S("Bonjour"), S("Bonjour"))); + return 0; } int test_string_copy() { - Arena perm = Arena_new(128e3); - Str src = S("Hello"); + 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), 21); - return 0; + return 0; } |
