| 31 | using namespace cti::detail; |
| 32 | |
| 33 | TEST(regression_tests, are_multiple_args_mergeable) { |
| 34 | auto tp2 = std::tuple_cat(std::make_tuple(), std::make_tuple(1), |
| 35 | std::make_tuple(1, 2), std::make_tuple(1, 2, 3), |
| 36 | std::make_tuple(1, 2, 3, 4)); |
| 37 | |
| 38 | auto count = traits::unpack( |
| 39 | [](auto... args) { |
| 40 | std::vector<int> v{args...}; |
| 41 | return std::accumulate(v.begin(), v.end(), 0); |
| 42 | }, |
| 43 | tp2); |
| 44 | EXPECT_EQ(count, 20); |
| 45 | } |
| 46 | |
| 47 | /// Recursive instantiation issue which affects Clang and GCC |
| 48 | TEST(regression_tests, are_erasures_direct_chainable) { |
nothing calls this directly
no test coverage detected