#include "string.h" #include "testing.h" char test_string_literal_equality() { t_assert(Str_equals(S("Bonjour"), S("Bonjour"))); return 0; } char test_string_copy() { Arena perm = Arena_new(128e3); Str src = S("Hello"); Str cpy = Str_copy(&perm, src.data, src.len); t_assert(Str_equals(src, cpy)); t_assert(Arena_get_used(perm) == 5); return 0; }