aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/scope_ut.cpp
diff options
context:
space:
mode:
authorqkrorlqr <qkrorlqr@yandex-team.ru>2022-02-10 16:47:20 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:20 +0300
commit9b89266638b10d40309e31dcb7caa2fc52b2aefd (patch)
treeaaf0d6ece270940a4f208e4202e4a37a15ce05b7 /util/generic/scope_ut.cpp
parent47af3b5bf148ddab250833ec454d30d7c4930c31 (diff)
downloadydb-9b89266638b10d40309e31dcb7caa2fc52b2aefd.tar.gz
Restoring authorship annotation for <qkrorlqr@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/scope_ut.cpp')
-rw-r--r--util/generic/scope_ut.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/scope_ut.cpp b/util/generic/scope_ut.cpp
index bdb434d4875..43cec8daca4 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);
}
-}
+}