Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
auto expectTrue(bool x)
6
{
7
if (!x)
8
{
9
throw std::runtime_error{
"False in expectedTrue!"
};
10
}
11
}
12
13
template <typename T>
14
auto expectEq(T const& l, T const& r)
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected