summaryrefslogtreecommitdiff
path: root/source/test/unittests/input_stream.test.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/test/unittests/input_stream.test.c')
-rw-r--r--source/test/unittests/input_stream.test.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source/test/unittests/input_stream.test.c b/source/test/unittests/input_stream.test.c
deleted file mode 100644
index 7dce043..0000000
--- a/source/test/unittests/input_stream.test.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "../../kit/input_stream.h"
-
-#define KIT_TEST_FILE input_stream
-#include "../../kit_test/test.h"
-
-TEST("input stream wrap string") {
- char foo[] = "test";
- char bar[] = "test";
-
- str_t foo_ref = { .size = sizeof(foo) - 1, .values = foo };
- str_t bar_ref = { .size = sizeof(bar) - 1, .values = bar };
-
- is_handle_t in = IS_WRAP_STRING(foo_ref);
-
- char buf[4];
- out_str_t buf_ref = { .size = sizeof(buf), .values = buf };
-
- REQUIRE(IS_READ(in, buf_ref) == buf_ref.size);
- REQUIRE(AR_EQUAL(foo_ref, bar_ref));
- REQUIRE(AR_EQUAL(buf_ref, bar_ref));
-
- is_destroy(in);
-}