X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=tests%2Fcommon%2Fircdecodertest.cpp;fp=tests%2Fcommon%2Fircdecodertest.cpp;h=380a038f061424daeeb4e20ee953e2a2ad730d02;hp=093633666df1922159a92804732cab29283b0532;hb=c33c05dbcb7c0c9a51dc3d9d85334e2482d5e18e;hpb=61219bb0ca15a6356fde510fd114fd3b6628f08b 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)