From a817f5de12611ec73085eba17f8ec7740a46bdb7 Mon Sep 17 00:00:00 2001 From: albert <albert@yandex-team.ru> Date: Thu, 10 Feb 2022 16:48:15 +0300 Subject: Restoring authorship annotation for <albert@yandex-team.ru>. Commit 2 of 2. --- library/cpp/testing/unittest/registar.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'library/cpp/testing/unittest/registar.h') diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index 3535aaeda2..44517a0092 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -701,7 +701,7 @@ public: \ return false; } - } + } //values #define UNIT_ASSERT_VALUES_EQUAL_IMPL(A, B, C, EQflag, EQstr, NEQstr) \ @@ -721,14 +721,14 @@ public: \ } \ } while (false) -#define UNIT_ASSERT_VALUES_EQUAL_C(A, B, C) \ - UNIT_ASSERT_VALUES_EQUAL_IMPL(A, B, C, true, "==", "!=") +#define UNIT_ASSERT_VALUES_EQUAL_C(A, B, C) \ + UNIT_ASSERT_VALUES_EQUAL_IMPL(A, B, C, true, "==", "!=") + +#define UNIT_ASSERT_VALUES_UNEQUAL_C(A, B, C) \ + UNIT_ASSERT_VALUES_EQUAL_IMPL(A, B, C, false, "!=", "==") -#define UNIT_ASSERT_VALUES_UNEQUAL_C(A, B, C) \ - UNIT_ASSERT_VALUES_EQUAL_IMPL(A, B, C, false, "!=", "==") - #define UNIT_ASSERT_VALUES_EQUAL(A, B) UNIT_ASSERT_VALUES_EQUAL_C(A, B, "") -#define UNIT_ASSERT_VALUES_UNEQUAL(A, B) UNIT_ASSERT_VALUES_UNEQUAL_C(A, B, "") +#define UNIT_ASSERT_VALUES_UNEQUAL(A, B) UNIT_ASSERT_VALUES_UNEQUAL_C(A, B, "") // Checks that test will fail while executing given expression // Macro for using in unitests for ut helpers -- cgit v1.2.3