From 835e1fcd131c63ee2b3b647e327b33a3bfb369e3 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 2 Sep 2023 20:59:29 +0200 Subject: [Linux] Change build system; Remove CMake --- source/test/unittests/string_ref.test.c | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 source/test/unittests/string_ref.test.c (limited to 'source/test/unittests/string_ref.test.c') diff --git a/source/test/unittests/string_ref.test.c b/source/test/unittests/string_ref.test.c deleted file mode 100644 index 5ec9414..0000000 --- a/source/test/unittests/string_ref.test.c +++ /dev/null @@ -1,23 +0,0 @@ -#include "../../kit/string_ref.h" - -#define KIT_TEST_FILE string_ref -#include "../../kit_test/test.h" - -TEST("static string wrap") { - str_t ref = SZ("foo bar"); - - REQUIRE(ref.size == 7); - REQUIRE(ref.values[0] == 'f'); - REQUIRE(ref.values[1] == 'o'); - REQUIRE(ref.values[2] == 'o'); - REQUIRE(ref.values[3] == ' '); - REQUIRE(ref.values[4] == 'b'); - REQUIRE(ref.values[5] == 'a'); - REQUIRE(ref.values[6] == 'r'); -} - -TEST("string literal") { - str_t foo = SZ("foo"); - str_t bar = foo; - (void) bar; -} -- cgit v1.2.3