diff options
-rw-r--r-- | tests/unit/plugins/irc/test-irc-nick.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/plugins/irc/test-irc-nick.cpp b/tests/unit/plugins/irc/test-irc-nick.cpp index a114e24f0..8f0d7ea17 100644 --- a/tests/unit/plugins/irc/test-irc-nick.cpp +++ b/tests/unit/plugins/irc/test-irc-nick.cpp @@ -108,6 +108,9 @@ TEST(IrcNick, IsNick) LONGS_EQUAL(0, irc_nick_is_nick (server, "nick!test")); LONGS_EQUAL(0, irc_nick_is_nick (server, "nick@test")); + /* invalid UTF-8 */ + LONGS_EQUAL(0, irc_nick_is_nick (server, "no\xc3l")); + /* valid nicks: UTF-8 */ LONGS_EQUAL(1, irc_nick_is_nick (server, "noël")); LONGS_EQUAL(1, irc_nick_is_nick (server, "testé")); |