From 7c2143a8c44808755bd3302e4bf17cb4b836a31e Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 11 Oct 2024 14:22:30 +0200 Subject: Mistakingly added template test which was already correctly handled --- modules/core/tests/core.cpp | 22 ---------------------- modules/core/tests/templates.cpp | 25 ++++++++++++++++--------- 2 files changed, 16 insertions(+), 31 deletions(-) diff --git a/modules/core/tests/core.cpp b/modules/core/tests/core.cpp index f418a07..12fc398 100644 --- a/modules/core/tests/core.cpp +++ b/modules/core/tests/core.cpp @@ -38,26 +38,4 @@ SAW_TEST("String Literal Append"){ SAW_EXPECT(c == "foobar", "CT String sum is not \"foobar\""); } - -SAW_TEST("Template Group Reduction"){ - using namespace saw; - - struct foo { - std::string name = "foo"; - }; - struct bar { - std::string name = "bar"; - }; - struct baz { - std::string name = "baz"; - }; - - using grp = tmpl_group; - using red_grp = tmpl_group; - - using alg_red_grp = tmpl_reduce::type; - - static_assert(std::is_same_v, "Should be same type"); - SAW_EXPECT((std::is_same_v), "Should be same type"); -} } diff --git a/modules/core/tests/templates.cpp b/modules/core/tests/templates.cpp index 2a069a6..95203f9 100644 --- a/modules/core/tests/templates.cpp +++ b/modules/core/tests/templates.cpp @@ -3,18 +3,25 @@ #include "../c++/test/suite.hpp" namespace { -struct Foo{}; - -struct Bar{}; -struct Baz{}; - -SAW_TEST("Templates/Reduce tmpl_group"){ +SAW_TEST("Templates/Group Reduction"){ using namespace saw; - using DuplGrp = tmpl_group; + struct foo { + std::string name = "foo"; + }; + struct bar { + std::string name = "bar"; + }; + struct baz { + std::string name = "baz"; + }; - using UniqGrp = tmpl_group; + using grp = tmpl_group; + using red_grp = tmpl_group; - SAW_EXPECT((std::is_same_v), "Expected Uniquess Reduction"); + using alg_red_grp = tmpl_reduce::type; + + static_assert(std::is_same_v, "Should be same type"); + SAW_EXPECT((std::is_same_v), "Should be same type"); } } -- cgit v1.2.3