diff --git a/cpp/tests/lib.hpp b/cpp/tests/lib.hpp index ee73b0e..acf45e8 100644 --- a/cpp/tests/lib.hpp +++ b/cpp/tests/lib.hpp @@ -2,8 +2,10 @@ #include -#define ASSERT_EQUALS(expected, actual) \ +#define ASSERT_EQUALS(x, y) \ { \ + auto expected = x; \ + auto actual = y; \ if (expected != actual) { \ std::cerr << "Expected: " << std::endl \ << '\t' << expected << std::endl \