diff options
author | druxa <druxa@yandex-team.ru> | 2022-02-10 16:49:28 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:28 +0300 |
commit | a6b6f52a89f054724740e5f7a04800b3d64f4367 (patch) | |
tree | fa84234b6b0eb745f922f635a6497d1e7eb9b2e0 /library/cpp/testing/unittest/registar.h | |
parent | 3d0b4183f2ddf8aebaf3f4ad74517b2eddef26a8 (diff) | |
download | ydb-a6b6f52a89f054724740e5f7a04800b3d64f4367.tar.gz |
Restoring authorship annotation for <druxa@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/registar.h')
-rw-r--r-- | library/cpp/testing/unittest/registar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index 44517a0092..a4abfc9d62 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -374,14 +374,14 @@ public: \ #define UNIT_FAIL(M) UNIT_FAIL_IMPL("forced failure", M) #define UNIT_FAIL_NONFATAL(M) UNIT_FAIL_NONFATAL_IMPL("forced failure", M) -//types +//types #define UNIT_ASSERT_TYPES_EQUAL(A, B) \ do { \ if (!std::is_same<A, B>::value) { \ UNIT_FAIL_IMPL("types equal assertion failed", (::TStringBuilder() << #A << " (" << TypeName<A>() << ") != " << #B << " (" << TypeName<B>() << ")").data()); \ } \ } while (false) - + //doubles // UNIT_ASSERT_DOUBLES_EQUAL_DEPRECATED* macros do not handle NaNs correctly (see IGNIETFERRO-1419) and are for backward compatibility // only. Consider switching to regular UNIT_ASSERT_DOUBLES_EQUAL* macros if you're still using the deprecated version. |