diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-10-19 21:27:31 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-10-19 21:27:31 +0200 |
commit | 3788ee1d2daf257cf132803851f30ba06e71d8da (patch) | |
tree | 1ee2ea4f00cdf22068637f65291d45b7770a10c6 /tests | |
parent | 715ccb602a02578995ba968203e6efef9fee57ac (diff) |
core: Added check if the ids are equal
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/core.cpp b/tests/core.cpp index eb315e5..5b6c116 100644 --- a/tests/core.cpp +++ b/tests/core.cpp @@ -42,6 +42,9 @@ SAW_TEST("ID Map Insert"){ auto eoid_2 = map.insert(foo{}); SAW_EXPECT(eoid_2.is_value(), "Second Insert failed"); + auto& id_2 = eoid_2.get_value(); + + SAW_EXPECT(id != id_2, "Shouldn't be equal"); auto eov = map.erase(id); SAW_EXPECT(eov.is_value(), "Erase failed"); |