From 60d0f8da2b754d1deb0dbb59f6e6783ba4c692c4 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 29 May 2024 21:16:06 +0200 Subject: Reworked id_map and trying to fix sycl launch --- modules/core/tests/core.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'modules/core/tests/core.cpp') diff --git a/modules/core/tests/core.cpp b/modules/core/tests/core.cpp index 48a25ea..b1ce741 100644 --- a/modules/core/tests/core.cpp +++ b/modules/core/tests/core.cpp @@ -1,6 +1,5 @@ #include "../c++/test/suite.hpp" #include "../c++/id.hpp" -#include "../c++/id_map.hpp" #include "../c++/string_literal.hpp" namespace { @@ -38,30 +37,4 @@ SAW_TEST("String Literal Append"){ SAW_EXPECT(c == "foobar", "CT String sum is not \"foobar\""); } - -SAW_TEST("ID Map Insert"){ - using namespace saw; - - struct foo {}; - - id_map map; - { - auto eoid = map.insert(foo{}); - SAW_EXPECT(eoid.is_value(), "First insert failed"); - - auto& id = eoid.get_value(); - - 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"); - - auto eov_2 = map.erase(id); - SAW_EXPECT(eov_2.is_error(), "This is a double free"); - } -} } -- cgit v1.2.3