diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-08 21:34:37 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-08 21:34:37 +0200 |
commit | 0a112c3f0964e4be0bab7148538656173768c3b7 (patch) | |
tree | 66ab90aaf5b6b4bf19c03f7fbf0ceca25102983b /source/tests/array_ref.test.c | |
parent | 24be37e59ba144a507bb53f07ca2673e0ed444b4 (diff) | |
download | kit-0a112c3f0964e4be0bab7148538656173768c3b7.zip |
Refactor kit_test to header-only library
Diffstat (limited to 'source/tests/array_ref.test.c')
-rw-r--r-- | source/tests/array_ref.test.c | 12 |
1 files changed, 1 insertions, 11 deletions
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 }; |