aboutsummaryrefslogtreecommitdiff
path: root/test_string.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-23 19:39:13 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-23 19:39:26 +0200
commit421300c27123ca647772dc6d9bd0cabf7f5f9c99 (patch)
treed916b62056b2440aef374b21373d16272bb709ee /test_string.c
parent53e9e371a16ae2d167f1fc2577dff2c2426eed68 (diff)
refactor: src & pragma once
Diffstat (limited to 'test_string.c')
-rw-r--r--test_string.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/test_string.c b/test_string.c
deleted file mode 100644
index 0d6dd71..0000000
--- a/test_string.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "string.h"
-#include "testing.h"
-
-i32 test_string_literal_equality() {
- t_assert(Str_equals(S("Bonjour"), S("Bonjour")));
- return 0;
-}
-
-i32 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_equal(Arena_get_used(perm), 5);
-
- return 0;
-}