summaryrefslogtreecommitdiff
path: root/source/test/unittests/string_ref.test.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2022-12-11 14:45:33 +0100
committerMitya Selivanov <automainint@guattari.tech>2022-12-11 14:45:33 +0100
commit550214f7b4cd5ee39ce3d246b928f6f6f9a04773 (patch)
tree829d1454ce3e54e1346e089a9046014b9de5035d /source/test/unittests/string_ref.test.c
parent2a673a8cb44fe34e1a0feed7fb40d7fc9e0203cd (diff)
downloadkit-550214f7b4cd5ee39ce3d246b928f6f6f9a04773.zip
[bigint] tests
Diffstat (limited to 'source/test/unittests/string_ref.test.c')
-rw-r--r--source/test/unittests/string_ref.test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/test/unittests/string_ref.test.c b/source/test/unittests/string_ref.test.c
index 7c49996..5ec9414 100644
--- a/source/test/unittests/string_ref.test.c
+++ b/source/test/unittests/string_ref.test.c
@@ -4,7 +4,7 @@
#include "../../kit_test/test.h"
TEST("static string wrap") {
- SZ(ref, "foo bar");
+ str_t ref = SZ("foo bar");
REQUIRE(ref.size == 7);
REQUIRE(ref.values[0] == 'f');
@@ -17,6 +17,7 @@ TEST("static string wrap") {
}
TEST("string literal") {
- SZ(foo, "foo");
+ str_t foo = SZ("foo");
str_t bar = foo;
+ (void) bar;
}