aboutsummaryrefslogtreecommitdiff
path: root/libk/string
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-03-12 16:44:02 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-03-12 16:44:02 +0200
commitb7f5d7565a19efbfebd72f2877444c552e4230c8 (patch)
treee17ec2edc3be86672442ca1ab854f21cb566b598 /libk/string
parentvmm: map multiboot structs (diff)
downloadkernel.cpp-b7f5d7565a19efbfebd72f2877444c552e4230c8.tar.xz
libk: add Result<T, E> class
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';
-}());