MCPcopy Create free account
hub / github.com/boost-ext/ut / main

Function main

example/spec.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10constexpr auto sum = [](auto... args) { return (0 + ... + args); };
11
12int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected