Merge branch 'mueller/new-object-id-class' into mueller/cfdp-routers

This commit is contained in:
Robin Müller 2022-07-29 14:27:59 +02:00
commit f75379fceb

View File

@ -19,5 +19,8 @@ TEST_CASE("Object Id", "[object-id]") {
CHECK(iter != testMap.end()); CHECK(iter != testMap.end());
CHECK(std::strcmp(iter->first.name(), "TEST_ID") == 0); CHECK(std::strcmp(iter->first.name(), "TEST_ID") == 0);
CHECK(iter->second == 10); CHECK(iter->second == 10);
auto otherIdSameName = ObjectId(12, "TEST_ID");
insertPair = testMap.emplace(otherIdSameName, 10);
CHECK(insertPair.second);
} }
} }