Add a None type for the Iid class (when the iid is completely empty)

This commit is contained in:
louiz’
2016-12-11 16:34:38 +01:00
parent 36252ad217
commit f653906f9d
3 changed files with 11 additions and 1 deletions
+6
View File
@@ -83,6 +83,12 @@ TEST_CASE("Iid creation")
CHECK(iid6.get_local() == "##channel");
CHECK(iid6.get_server() == "");
CHECK(iid6.type == Iid::Type::Channel);
Iid iid7("", chantypes);
CHECK(std::to_string(iid7) == "");
CHECK(iid7.get_local() == "");
CHECK(iid7.get_server() == "");
CHECK(iid7.type == Iid::Type::None);
}
TEST_CASE("Iid creation in fixed_server mode")