X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=tests%2Fcommon%2Fircdecodertest.cpp;h=380a038f061424daeeb4e20ee953e2a2ad730d02;hb=6c561d2b7b1bb303cfcd8a013179b1838d315910;hp=093633666df1922159a92804732cab29283b0532;hpb=a95ad2de573027f9bee36db972bcae4195168d0c;p=quassel.git diff --git a/tests/common/ircdecodertest.cpp b/tests/common/ircdecodertest.cpp index 09363366..380a038f 100644 --- a/tests/common/ircdecodertest.cpp +++ b/tests/common/ircdecodertest.cpp @@ -150,6 +150,30 @@ TEST(IrcDecoderTest, with_tags) {IrcTagKey("rt"), "ql7"}}, "", "foo")); + + EXPECT_EQ(parse("@a=b foo"), + IrcMessage( + {{IrcTagKey("a"), "b"}}, + "", + "foo")); + + EXPECT_EQ(parse("@example.com/a=b foo"), + IrcMessage( + {{IrcTagKey("example.com", "a"), "b"}}, + "", + "foo")); + + EXPECT_EQ(parse("@example.com/subfolder/to/a=b foo"), + IrcMessage( + {{IrcTagKey("example.com/subfolder/to", "a"), "b"}}, + "", + "foo")); + + EXPECT_EQ(parse("@v\\/e\\/n\\/d\\/o\\/r/tag=b foo"), + IrcMessage( + {{IrcTagKey("v\\/e\\/n\\/d\\/o\\/r", "tag"), "b"}}, + "", + "foo")); } TEST(IrcDecoderTest, with_escaped_tags)