From 550214f7b4cd5ee39ce3d246b928f6f6f9a04773 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sun, 11 Dec 2022 14:45:33 +0100 Subject: [bigint] tests --- source/test/unittests/string_ref.test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 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; } -- cgit v1.2.3