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

Function main

example/using.cpp:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <boost/ut.hpp>
9
10int main() {
11 using boost::ut::operator""_test;
12 using boost::ut::operator""_i;
13
14 "using"_test = [] {
15 using boost::ut::expect;
16
17 using boost::ut::eq;
18 expect(eq(42, 42));
19
20 using boost::ut::operator==;
21 expect(42_i == 42);
22
23 using boost::ut::operator and;
24 using boost::ut::that;
25 expect(that % 1 == 1 and that % 2 == 2);
26 };
27}

Callers

nothing calls this directly

Calls 2

expectFunction · 0.85
eqFunction · 0.85

Tested by

no test coverage detected