aboutsummaryrefslogtreecommitdiff
path: root/lib/tst/string.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tst/string.cc')
-rw-r--r--lib/tst/string.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/tst/string.cc b/lib/tst/string.cc
deleted file mode 100644
index f22c123..0000000
--- a/lib/tst/string.cc
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <gtest/gtest.h>
-
-namespace libk {
-#include "../libk/string/itoa.c"
-}
-
-char buffer[64];
-
-TEST(itoa, itoa)
-{
- EXPECT_STREQ(libk::itoa(buffer, 12341234, 10), "12341234");
- EXPECT_STREQ(libk::itoa(buffer, -12341234, 10), "-12341234");
- EXPECT_STREQ(libk::itoa(buffer, 0x7fffffff, 16), "7fffffff");
-}
-
-TEST(itoa, utoa)
-{
- EXPECT_STREQ(libk::utoa(buffer, 12341234u, 10), "12341234");
- EXPECT_STREQ(libk::utoa(buffer, 0xdecafade, 16), "decafade");
-}