aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/yassert_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/system/yassert_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/yassert_ut.cpp')
-rw-r--r--util/system/yassert_ut.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/system/yassert_ut.cpp b/util/system/yassert_ut.cpp
index ddd392666c..56d6122d0f 100644
--- a/util/system/yassert_ut.cpp
+++ b/util/system/yassert_ut.cpp
@@ -4,32 +4,32 @@
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(YassertTest) {
- Y_UNIT_TEST(TestAcsLikeFunctionCall) {
+Y_UNIT_TEST_SUITE(YassertTest) {
+ Y_UNIT_TEST(TestAcsLikeFunctionCall) {
if (true) {
- Y_ASSERT(true); // this cannot be compiled if Y_ASSERT is "if (!cond) { ... }"
+ Y_ASSERT(true); // this cannot be compiled if Y_ASSERT is "if (!cond) { ... }"
} else {
- Y_ASSERT(false);
+ Y_ASSERT(false);
}
bool var = false;
if (false) {
- Y_ASSERT(false);
+ Y_ASSERT(false);
} else {
- var = true; // this is unreachable if Y_ASSERT is "if (!cond) { ... }"
+ var = true; // this is unreachable if Y_ASSERT is "if (!cond) { ... }"
}
UNIT_ASSERT(var);
}
- Y_UNIT_TEST(TestFailCompiles) {
+ Y_UNIT_TEST(TestFailCompiles) {
if (false) {
- Y_FAIL("%d is a lucky number", 7);
- Y_FAIL();
+ Y_FAIL("%d is a lucky number", 7);
+ Y_FAIL();
}
}
- Y_UNIT_TEST(TestVerify) {
- Y_VERIFY(true, "hi %s", "there");
- Y_VERIFY(true);
+ Y_UNIT_TEST(TestVerify) {
+ Y_VERIFY(true, "hi %s", "there");
+ Y_VERIFY(true);
}
}