diff options
Diffstat (limited to 'library/cpp/threading/atomic/bool_ut.cpp')
| -rw-r--r-- | library/cpp/threading/atomic/bool_ut.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/library/cpp/threading/atomic/bool_ut.cpp b/library/cpp/threading/atomic/bool_ut.cpp deleted file mode 100644 index 9481f41d8dc..00000000000 --- a/library/cpp/threading/atomic/bool_ut.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#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); - } -} |
