summaryrefslogtreecommitdiffstats
path: root/util/system/yassert_ut.cpp
diff options
context:
space:
mode:
authornga <[email protected]>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /util/system/yassert_ut.cpp
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/yassert_ut.cpp')
-rw-r--r--util/system/yassert_ut.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/util/system/yassert_ut.cpp b/util/system/yassert_ut.cpp
index ddd392666c8..c3f8cce9992 100644
--- a/util/system/yassert_ut.cpp
+++ b/util/system/yassert_ut.cpp
@@ -1,9 +1,9 @@
-#undef NDEBUG
-// yassert.h must be included before all headers
-#include "yassert.h"
-
+#undef NDEBUG
+// yassert.h must be included before all headers
+#include "yassert.h"
+
#include <library/cpp/testing/unittest/registar.h>
-
+
Y_UNIT_TEST_SUITE(YassertTest) {
Y_UNIT_TEST(TestAcsLikeFunctionCall) {
if (true) {
@@ -11,25 +11,25 @@ Y_UNIT_TEST_SUITE(YassertTest) {
} else {
Y_ASSERT(false);
}
-
- bool var = false;
+
+ bool var = false;
if (false) {
Y_ASSERT(false);
} else {
var = true; // this is unreachable if Y_ASSERT is "if (!cond) { ... }"
}
- UNIT_ASSERT(var);
- }
-
+ UNIT_ASSERT(var);
+ }
+
Y_UNIT_TEST(TestFailCompiles) {
- if (false) {
+ if (false) {
Y_FAIL("%d is a lucky number", 7);
Y_FAIL();
- }
- }
-
+ }
+ }
+
Y_UNIT_TEST(TestVerify) {
Y_VERIFY(true, "hi %s", "there");
Y_VERIFY(true);
- }
-}
+ }
+}