Refactor, test and improve the way we cut too-long messages for IRC

This commit is contained in:
louiz’
2016-06-14 20:14:36 +02:00
parent 19bca5c2f2
commit 80d0c19c5a
4 changed files with 28 additions and 9 deletions
+6
View File
@@ -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);
}