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

Function main

example/should.cpp:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <boost/ut.hpp>
9
10int main() {
11 using namespace boost::ut;
12
13 auto i = 0;
14 expect((i == 0_i) >> fatal);
15
16 should("return increased number for ++") = [i] { expect(++mut(i) == 1_i); };
17 should("return decreased number for --") = [i]() mutable {
18 expect(--i == -1_i);
19 };
20}

Callers

nothing calls this directly

Calls 2

expectFunction · 0.85
mutFunction · 0.85

Tested by

no test coverage detected