summaryrefslogtreecommitdiff
path: root/src/unit_tests.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unit_tests.cc')
-rw-r--r--src/unit_tests.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unit_tests.cc b/src/unit_tests.cc
index ec9bb64c..f7ec5eab 100644
--- a/src/unit_tests.cc
+++ b/src/unit_tests.cc
@@ -105,6 +105,8 @@ void test_utf8()
kak_assert(utf8::codepoint(str.begin() + 2, str.end()) == 0x00EF);
}
+constexpr auto ss_static_str = static_storage("yeehaa");
+
void test_string()
{
kak_assert(String("youpi ") + "matin" == "youpi matin");
@@ -137,6 +139,8 @@ void test_string()
kak_assert(subsequence_match("tchou kanaky", "knk"));
kak_assert(subsequence_match("tchou kanaky", "tchou kanaky"));
kak_assert(not subsequence_match("tchou kanaky", "tchou kanaky"));
+
+ kak_assert(ss_static_str.refcount == -1);
}
void test_keys()