Protocol: normalize query rows and identity points

This commit is contained in:
faumaray committed 2026-07-26 16:44:09 +03:00
1 parent cb43116da6
commit 5c0c0c525f
3 files changed
+41 -13

No files matched your search

+13
View File
@@ -53,3 +53,16 @@ TEST_CASE(parse_pipe_groups)
CHECK_EQ(pc.groups[1]["cid"], std::string("2"));
CHECK_EQ(pc.groups[1]["channel_name"], std::string("Talk"));
}
TEST_CASE(parse_bare_response_groups_preserves_first_field)
{
auto pc = parseCommand("cid=3 pid=0 channel_name=Default|cid=4 pid=0 "
"channel_name=Games");
CHECK(pc.name.empty());
CHECK_EQ(pc.groups.size(), size_t(2));
CHECK_EQ(pc.groups[0]["cid"], std::string("3"));
CHECK_EQ(pc.groups[0]["pid"], std::string("0"));
CHECK_EQ(pc.groups[0]["channel_name"], std::string("Default"));
CHECK_EQ(pc.groups[1]["cid"], std::string("4"));
CHECK_EQ(pc.groups[1]["channel_name"], std::string("Games"));
}