diff options
author | iroubin <[email protected]> | 2022-02-10 16:52:05 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:52:05 +0300 |
commit | e1eef5fd2ea964227b9be2c182415857c35e1290 (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /util/generic/vector_ut.cpp | |
parent | 94a4c65975048c0c31313b5105d9eb14cbde4985 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/vector_ut.cpp')
-rw-r--r-- | util/generic/vector_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/vector_ut.cpp b/util/generic/vector_ut.cpp index 488451d8f37..0f6b4037a00 100644 --- a/util/generic/vector_ut.cpp +++ b/util/generic/vector_ut.cpp @@ -35,39 +35,39 @@ class TYVectorTest: public TTestBase { private: void TestConstructorsAndAssignments() { using container = TVector<int>; - + container c1; c1.push_back(100); c1.push_back(200); - + container c2(c1); - + UNIT_ASSERT_VALUES_EQUAL(2, c1.size()); UNIT_ASSERT_VALUES_EQUAL(2, c2.size()); UNIT_ASSERT_VALUES_EQUAL(100, c1.at(0)); UNIT_ASSERT_VALUES_EQUAL(200, c2.at(1)); - + container c3(std::move(c1)); - + UNIT_ASSERT_VALUES_EQUAL(0, c1.size()); UNIT_ASSERT_VALUES_EQUAL(2, c3.size()); UNIT_ASSERT_VALUES_EQUAL(100, c3.at(0)); - + c2.push_back(300); c3 = c2; - + UNIT_ASSERT_VALUES_EQUAL(3, c2.size()); UNIT_ASSERT_VALUES_EQUAL(3, c3.size()); UNIT_ASSERT_VALUES_EQUAL(300, c3.at(2)); - + c2.push_back(400); c3 = std::move(c2); - + UNIT_ASSERT_VALUES_EQUAL(0, c2.size()); UNIT_ASSERT_VALUES_EQUAL(4, c3.size()); UNIT_ASSERT_VALUES_EQUAL(400, c3.at(3)); } - + inline void TestTildeEmptyToNull() { TVector<int> v; UNIT_ASSERT_EQUAL(nullptr, v.data()); |