verify correct key behaviour

This commit is contained in:
Robin Müller 2022-07-29 14:24:16 +02:00
parent 47e148af8f
commit 4a4d23573d
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

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