aboutsummaryrefslogtreecommitdiff
path: root/test/string.c
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-11-13 16:28:13 -0500
committernodist <kevin.comas.git@gmail.com>2026-11-13 16:28:13 -0500
commitc3d23d3091c23978b12c140e6cfd964eff1d3986 (patch)
tree3342a73aea427fa19d2b0936a98e37fbe479c85d /test/string.c
parent75c8828d804f45cf8f44af73bfe87e0f3eaf9a9e (diff)
rewriteHEADmain
Diffstat (limited to 'test/string.c')
-rw-r--r--test/string.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/string.c b/test/string.c
deleted file mode 100644
index 8a6742c..0000000
--- a/test/string.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-#include "kpl_test.h"
-
-KPL_TEST(string_init) {
- kpl_thread thread = {};
- const char *c_string = "test string\n";
- kpl_memory_allocator_init(&thread.memory_allocator);
- kpl_gc_init(&thread.gc);
- kpl_object_string *string = kpl_object_string_from_c_string(&thread, c_string);
- KPL_ASSERT(string->bytes_length == (int32_t) strlen(c_string), "string should have same length as c string");
- KPL_ASSERT(strcmp(c_string, (char*) string->bytes) == 0, "new string should equal c string");
- kpl_gc_free(&thread);
- kpl_memory_allocator_free(&thread.memory_allocator);
-}