From 5549c771773588745407365dc18cda74ea8ffd5d Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Sun, 2 Feb 2025 22:04:41 +0100 Subject: [PATCH] updated testing library --- cpp/tests/lib.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 \