diff options
author | vmordovin <vmordovin@yandex-team.ru> | 2022-02-10 16:48:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:14 +0300 |
commit | 6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/threading/atomic/bool_ut.cpp | |
parent | 7c7f9bbcf57e15838d15afa94b31d8254b5d7776 (diff) | |
download | ydb-6a1e535429145ec1ecfbc5f1efd3c95323261fb5.tar.gz |
Restoring authorship annotation for <vmordovin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/atomic/bool_ut.cpp')
-rw-r--r-- | library/cpp/threading/atomic/bool_ut.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/library/cpp/threading/atomic/bool_ut.cpp b/library/cpp/threading/atomic/bool_ut.cpp index 4f417e090f..9481f41d8d 100644 --- a/library/cpp/threading/atomic/bool_ut.cpp +++ b/library/cpp/threading/atomic/bool_ut.cpp @@ -1,31 +1,31 @@ -#include "bool.h" - +#include "bool.h" + #include <library/cpp/testing/unittest/registar.h> - + Y_UNIT_TEST_SUITE(AtomicBool) { Y_UNIT_TEST(ReadWrite) { - NAtomic::TBool v; - - UNIT_ASSERT_VALUES_EQUAL((bool)v, false); - - v = true; - - UNIT_ASSERT_VALUES_EQUAL((bool)v, true); - - v = false; - - UNIT_ASSERT_VALUES_EQUAL((bool)v, false); - - NAtomic::TBool v2; - - UNIT_ASSERT(v == v2); - - v2 = true; - - UNIT_ASSERT(v != v2); - - v = v2; - - UNIT_ASSERT(v == v2); - } -} + NAtomic::TBool v; + + UNIT_ASSERT_VALUES_EQUAL((bool)v, false); + + v = true; + + UNIT_ASSERT_VALUES_EQUAL((bool)v, true); + + v = false; + + UNIT_ASSERT_VALUES_EQUAL((bool)v, false); + + NAtomic::TBool v2; + + UNIT_ASSERT(v == v2); + + v2 = true; + + UNIT_ASSERT(v != v2); + + v = v2; + + UNIT_ASSERT(v == v2); + } +} |