diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-29 21:16:06 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-29 21:16:06 +0200 |
commit | 60d0f8da2b754d1deb0dbb59f6e6783ba4c692c4 (patch) | |
tree | c0d49736f035220640ed01cfb210d37e7bb254cb /modules/core/tests/core.cpp | |
parent | 7b6e0ca99f8521e034452f0d0243a7f3e33843a9 (diff) |
Reworked id_map and trying to fix sycl launch
Diffstat (limited to 'modules/core/tests/core.cpp')
-rw-r--r-- | modules/core/tests/core.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
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<foo> 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"); - } -} } |