diff --git a/cpp/tests/lib.hpp b/cpp/tests/lib.hpp index 9e2e994..ee73b0e 100644 --- a/cpp/tests/lib.hpp +++ b/cpp/tests/lib.hpp @@ -4,9 +4,11 @@ #define ASSERT_EQUALS(expected, actual) \ { \ - if (expected != actual) \ - std::cout << "Expected: " << std::endl \ + if (expected != actual) { \ + std::cerr << "Expected: " << std::endl \ << '\t' << expected << std::endl \ << "Got: " << std::endl \ << '\t' << actual << std::endl; \ + exit(1); \ + } \ }