From 0a112c3f0964e4be0bab7148538656173768c3b7 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 8 Sep 2023 21:34:37 +0200 Subject: Refactor kit_test to header-only library --- source/tests/array_ref.test.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'source/tests/array_ref.test.c') diff --git a/source/tests/array_ref.test.c b/source/tests/array_ref.test.c index cb19850..06e098c 100644 --- a/source/tests/array_ref.test.c +++ b/source/tests/array_ref.test.c @@ -1,17 +1,7 @@ #include "../kit/array_ref.h" #define KIT_TEST_FILE array_ref -#include "../kit_test/test.h" - -TEST("array ref wrap") { - int foo[] = { 1, 2, 3 }; - AR_WRAP(ref, int, foo); - - REQUIRE(ref.size == 3); - REQUIRE(ref.values[0] == 1); - REQUIRE(ref.values[1] == 2); - REQUIRE(ref.values[2] == 3); -} +#include "../kit/kit_test.h" TEST("array ref wrap") { int foo[] = { 1, 2, 3 }; -- cgit v1.2.3