summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/utils.cpp b/tests/utils.cpp
index 8691910..54e743f 100644
--- a/tests/utils.cpp
+++ b/tests/utils.cpp
@@ -88,3 +88,9 @@ TEST_CASE("empty if fixed irc server")
}
}
+
+TEST_CASE("string cut")
+{
+ CHECK(cut("coucou", 2).size() == 3);
+ CHECK(cut("bonjour les copains", 6).size() == 4);
+} \ No newline at end of file