diff options
author | pavelgur <[email protected]> | 2022-02-10 16:50:19 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:19 +0300 |
commit | db222959b3748242024c781f563f31a342492476 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/hash_ut.cpp | |
parent | 173c6a0fa7f439b2c207c2f258e52ccb4ac181cf (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash_ut.cpp')
-rw-r--r-- | util/generic/hash_ut.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/hash_ut.cpp b/util/generic/hash_ut.cpp index 873a5ecebcd..0551d587708 100644 --- a/util/generic/hash_ut.cpp +++ b/util/generic/hash_ut.cpp @@ -147,19 +147,19 @@ void THashTest::TestHMapConstructorsAndAssignments() { UNIT_ASSERT_VALUES_EQUAL(0, c2.size()); UNIT_ASSERT_VALUES_EQUAL(4, c3.size()); UNIT_ASSERT_VALUES_EQUAL(4, c3.at("four")); - + const container c4{ {"one", 1}, {"two", 2}, - {"three", 3}, + {"three", 3}, {"four", 4}, - }; - - UNIT_ASSERT_VALUES_EQUAL(4, c4.size()); - UNIT_ASSERT_VALUES_EQUAL(1, c4.at("one")); - UNIT_ASSERT_VALUES_EQUAL(2, c4.at("two")); - UNIT_ASSERT_VALUES_EQUAL(3, c4.at("three")); - UNIT_ASSERT_VALUES_EQUAL(4, c4.at("four")); + }; + + UNIT_ASSERT_VALUES_EQUAL(4, c4.size()); + UNIT_ASSERT_VALUES_EQUAL(1, c4.at("one")); + UNIT_ASSERT_VALUES_EQUAL(2, c4.at("two")); + UNIT_ASSERT_VALUES_EQUAL(3, c4.at("three")); + UNIT_ASSERT_VALUES_EQUAL(4, c4.at("four")); // non-existent values must be zero-initialized UNIT_ASSERT_VALUES_EQUAL(c1["nonexistent"], 0); @@ -1035,8 +1035,8 @@ void THashTest::TestHSetEmplaceDirect() { hash.emplace_direct(ins, 1); UNIT_ASSERT(hash.contains(0)); UNIT_ASSERT(!hash.contains(1)); -} - +} + void THashTest::TestNonCopyable() { struct TValue: public TNonCopyable { int value; |