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

Function expectEq

sample/parse_expr.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13template <typename T>
14auto expectEq(T const& l, T const& r)
15{
16 if (l != r)
17 {
18 std::stringstream ss;
19 ss << l << " != " << r;
20 throw std::runtime_error{ss.str()};
21 }
22}
23
24using namespace hspp;
25using namespace hspp::parser;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected