| 10 | constexpr auto sum = [](auto... args) { return (0 + ... + args); }; |
| 11 | |
| 12 | int main() { |
| 13 | using namespace boost::ut::operators::terse; |
| 14 | using namespace boost::ut::literals; |
| 15 | using namespace boost::ut::spec; |
| 16 | |
| 17 | describe("sum") = [] { |
| 18 | it("should be 0") = [] { sum() == 0_i; }; |
| 19 | it("should add all args") = [] { sum(1, 2, 3) == 6_i; }; |
| 20 | }; |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected