diff options
| author | aosipenko <[email protected]> | 2022-02-10 16:48:08 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:08 +0300 | 
| commit | 69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch) | |
| tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/draft/holder_vector_ut.cpp | |
| parent | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/draft/holder_vector_ut.cpp')
| -rw-r--r-- | util/draft/holder_vector_ut.cpp | 26 | 
1 files changed, 13 insertions, 13 deletions
diff --git a/util/draft/holder_vector_ut.cpp b/util/draft/holder_vector_ut.cpp index 265af73549b..f64393860af 100644 --- a/util/draft/holder_vector_ut.cpp +++ b/util/draft/holder_vector_ut.cpp @@ -49,21 +49,21 @@ Y_UNIT_TEST_SUITE(THolderVectorTest) {          UNIT_ASSERT_VALUES_EQUAL(*ints[0], 1);          UNIT_ASSERT(!holder);      } -  +      Y_UNIT_TEST(TestSwap) { -        THolderVector<int> v1;  -        v1.PushBack(new int(1));  -  -        THolderVector<int> v2;  -        v1.Swap(v2);  -        UNIT_ASSERT(v1.empty() && v2.size() == 1 && *v2.front() == 1);  -    }  -  +        THolderVector<int> v1; +        v1.PushBack(new int(1)); + +        THolderVector<int> v2; +        v1.Swap(v2); +        UNIT_ASSERT(v1.empty() && v2.size() == 1 && *v2.front() == 1); +    } +      Y_UNIT_TEST(TestUniquePtr) {          THolderVector<TString> v;          std::unique_ptr<TString> str(new TString("hello")); -        v.PushBack(std::move(str));  -        UNIT_ASSERT(v.Size() == 1);  -        UNIT_ASSERT(str.get() == nullptr);  -    }  +        v.PushBack(std::move(str)); +        UNIT_ASSERT(v.Size() == 1); +        UNIT_ASSERT(str.get() == nullptr); +    }  }  | 
