summaryrefslogtreecommitdiff
path: root/source/test/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'source/test/unittests')
-rw-r--r--source/test/unittests/string_ref.test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/test/unittests/string_ref.test.c b/source/test/unittests/string_ref.test.c
index b89459e..7c49996 100644
--- a/source/test/unittests/string_ref.test.c
+++ b/source/test/unittests/string_ref.test.c
@@ -15,3 +15,8 @@ TEST("static string wrap") {
REQUIRE(ref.values[5] == 'a');
REQUIRE(ref.values[6] == 'r');
}
+
+TEST("string literal") {
+ SZ(foo, "foo");
+ str_t bar = foo;
+}