diff options
| author | levlam <levlam@telegram.org> | 2019-01-20 02:03:16 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2019-01-20 02:03:16 +0300 |
| commit | 61a4f2a6711f913ef2d24b93ecd037313c548bb2 (patch) | |
| tree | fe854d3c2c409d10608c1f060d5f8369799f496c /test/set_with_position.cpp | |
| parent | 73996c6efe9ecee489e0e8e082b1cab075d6c05d (diff) | |
Remove test logging.
GitOrigin-RevId: c2e96f762d669b04238f101398cb53926a90ec08
Diffstat (limited to 'test/set_with_position.cpp')
| -rw-r--r-- | test/set_with_position.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/set_with_position.cpp b/test/set_with_position.cpp index aeca17526..facf2ab4a 100644 --- a/test/set_with_position.cpp +++ b/test/set_with_position.cpp @@ -228,7 +228,8 @@ template <template <class> class RawSet> static void test_speed() { Random::Xorshift128plus rnd(123); using Set = CheckedSetWithPosition<int, RawSet>; - std::vector<unique_ptr<Set>> sets(1 << 13); + constexpr size_t total_size = 1 << 13; + std::vector<unique_ptr<Set>> sets(total_size); for (size_t i = 0; i < sets.size(); i++) { sets[i] = make_unique<Set>(); sets[i]->add(int(i)); @@ -240,7 +241,7 @@ static void test_speed() { sets[i]->merge(std::move(*sets[j])); } } - LOG(ERROR) << sets[0]->size(); + ASSERT_EQ(total_size, sets[0]->size()); } TEST(SetWithPosition, hands) { |
