diff options
author | qkrorlqr <qkrorlqr@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
commit | eec632e483ae34bc211138c67434b1e0e6054ced (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/generic/scope_ut.cpp | |
parent | 9b89266638b10d40309e31dcb7caa2fc52b2aefd (diff) | |
download | ydb-eec632e483ae34bc211138c67434b1e0e6054ced.tar.gz |
Restoring authorship annotation for <qkrorlqr@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/scope_ut.cpp')
-rw-r--r-- | util/generic/scope_ut.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/scope_ut.cpp b/util/generic/scope_ut.cpp index 43cec8daca..bdb434d487 100644 --- a/util/generic/scope_ut.cpp +++ b/util/generic/scope_ut.cpp @@ -1,13 +1,13 @@ -#include "scope.h" - +#include "scope.h" + #include <util/generic/ptr.h> #include <library/cpp/testing/unittest/registar.h> - + Y_UNIT_TEST_SUITE(ScopeToolsTest) { Y_UNIT_TEST(OnScopeExitTest) { - int i = 0; - - { + int i = 0; + + { Y_SCOPE_EXIT(&i) { i = i * 2; }; @@ -15,10 +15,10 @@ Y_UNIT_TEST_SUITE(ScopeToolsTest) { Y_SCOPE_EXIT(&i) { i = i + 1; }; - } - - UNIT_ASSERT_VALUES_EQUAL(2, i); - } + } + + UNIT_ASSERT_VALUES_EQUAL(2, i); + } Y_UNIT_TEST(OnScopeExitMoveTest) { THolder<int> i{new int{10}}; @@ -44,4 +44,4 @@ Y_UNIT_TEST_SUITE(ScopeToolsTest) { UNIT_ASSERT_VALUES_EQUAL(i, 20); } -} +} |