MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / assert_true

Function assert_true

tester/test_header.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void assert_true(bool actual, bool kill = false) {
26 if (true != actual) {
27 ANY_FAILED = true;
28 cout << "Assertion failed:" << endl;
29 cout << "Expected: " << "true" << endl;
30 cout << " Actual: " << "false" << endl;
31 if (kill) assert(false);
32 }
33}
34
35void assert_false(bool actual, bool kill = false) {
36 if (false != actual) {

Callers 15

assert_almost_equalFunction · 0.85
assert_nearly_equalFunction · 0.85
testFunction · 0.85
assert_nearly_equalFunction · 0.85
checkFunction · 0.85
assert_nearly_equalFunction · 0.85
assert_nearly_equalFunction · 0.85
assert_nearly_equalFunction · 0.85
testFunction · 0.85
testFunction · 0.85
testFunction · 0.85
testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected