From 3788ee1d2daf257cf132803851f30ba06e71d8da Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 19 Oct 2023 21:27:31 +0200 Subject: core: Added check if the ids are equal --- tests/core.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/core.cpp') 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"); -- cgit v1.2.3