aboutsummaryrefslogtreecommitdiff
path: root/libk/string
diff options
context:
space:
mode:
Diffstat (limited to 'libk/string')
-rw-r--r--libk/string/test.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/libk/string/test.cc b/libk/string/test.cc
deleted file mode 100644
index 4d7d340..0000000
--- a/libk/string/test.cc
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <string.h>
-
-// strlen
-static_assert(strlen("") == 0);
-static_assert(strlen("0") == 1);
-static_assert(strlen("hello") == 5);
-static_assert(strlen("world") == 5);
-
-// reverse
-static_assert([]() {
- char s[] = "xyz";
- reverse(s, strlen(s));
- return s[0] == 'z' && s[1] == 'y' && s[2] == 'x' && s[3] == '\0';
-}());