MCPcopy Create free account
hub / github.com/BowenFu/hspp / expectTrue

Function expectTrue

sample/parse_expr.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <cassert>
4
5auto expectTrue(bool x)
6{
7 if (!x)
8 {
9 throw std::runtime_error{"False in expectedTrue!"};
10 }
11}
12
13template <typename T>
14auto expectEq(T const& l, T const& r)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected