In fixed mode, fix the iid type of the component JID

This commit is contained in:
louiz’
2017-07-20 21:28:18 +02:00
parent ffb402f0ad
commit 24f2511d7b
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -125,4 +125,10 @@ TEST_CASE("Iid creation in fixed_server mode")
CHECK(iid6.get_local() == "##channel%");
CHECK(iid6.get_server() == "fixed.example.com");
CHECK(iid6.type == Iid::Type::Channel);
Iid iid7("", chantypes);
CHECK(std::to_string(iid7) == "");
CHECK(iid7.get_local() == "");
CHECK(iid7.get_server() == "fixed.example.com");
CHECK(iid7.type == Iid::Type::None);
}