summaryrefslogtreecommitdiff
path: root/src/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.cpp')
-rw-r--r--src/test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test.cpp b/src/test.cpp
index e3bfa55..d110868 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -6,6 +6,7 @@
#include <iostream>
+#include <bridge/colors.hpp>
#include <utils/encoding.hpp>
#include <string.h>
@@ -39,5 +40,9 @@ int main()
// wrong charset)
std::string from_ascii = utils::convert_to_utf8(original_latin1, "US-ASCII");
assert(from_ascii == "couc�ou");
+
+ std::string coucou("\u0002\u0002COUCOU\u0003");
+ remove_irc_colors(coucou);
+ assert(coucou == "COUCOU");
return 0;
}