#include #include "../common.h" #include TEST_CASE("mp/tuple") { using T0 = std::tuple<>; using T1 = std::tuple; using T2 = std::tuple; using T3 = std::tuple; using T4 = std::tuple; using T5 = std::tuple; using T6 = std::tuple; SECTION("SubTuple") { SECTION("empty") { TEST(REQUIRE, is_same_v>, T0>); TEST(REQUIRE, is_same_v>, T0>); TEST(REQUIRE, is_same_v>, T0>); TEST(REQUIRE, is_same_v>, T0>); TEST(REQUIRE, is_same_v>, T0>); TEST(REQUIRE, is_same_v>, T0>); TEST(REQUIRE, is_same_v>, T0>); } SECTION("keep all") { TEST(REQUIRE, is_same_v>, T1>); TEST(REQUIRE, is_same_v>, T2>); TEST(REQUIRE, is_same_v>, T3>); TEST(REQUIRE, is_same_v>, T4>); TEST(REQUIRE, is_same_v>, T5>); TEST(REQUIRE, is_same_v>, T6>); } SECTION("general") { TEST(REQUIRE, is_same_v>, std::tuple>); TEST(REQUIRE, is_same_v>, std::tuple>); TEST(REQUIRE, is_same_v>, std::tuple>); } } }