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

Function assert_not_equal

tester/test_header.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14template <class T>
15void assert_not_equal(T not_expected, T actual, bool kill = false) {
16 if (not_expected == actual) {
17 ANY_FAILED = true;
18 cout << "Assertion failed:" << endl;
19 cout << "Not expected: " << not_expected << endl;
20 cout << " Actual: " << actual << endl;
21 if (kill) assert(false);
22 }
23}
24
25void assert_true(bool actual, bool kill = false) {
26 if (true != actual) {

Callers 11

checkFunction · 0.85
testFunction · 0.85
testFunction · 0.85
test_1Function · 0.85
test_2Function · 0.85
test_4Function · 0.85
test_5Function · 0.85
test_6Function · 0.85
test_7Function · 0.85
test_8Function · 0.85
test_10Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected