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

Function assert_equal

tester/test_header.cpp:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3template <class T>
4void assert_equal(T expected, T actual, bool kill = false) {
5 if (!(expected == actual)) {
6 ANY_FAILED = true;
7 cout << "Assertion failed:" << endl;
8 cout << "Expected: " << expected << endl;
9 cout << " Actual: " << actual << endl;
10 if (kill) assert(false);
11 }
12}
13
14template <class T>
15void assert_not_equal(T not_expected, T actual, bool kill = false) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected