From c0dea7b1b3efe0a00f71c673eef585be7ed7c495 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Mon, 23 Mar 2020 22:33:36 +0300 Subject: [PATCH] Fix test. --- dbms/src/Columns/tests/gtest_weak_hash_32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbms/src/Columns/tests/gtest_weak_hash_32.cpp b/dbms/src/Columns/tests/gtest_weak_hash_32.cpp index f88eaf43569..7c1d7c7a40f 100644 --- a/dbms/src/Columns/tests/gtest_weak_hash_32.cpp +++ b/dbms/src/Columns/tests/gtest_weak_hash_32.cpp @@ -27,6 +27,8 @@ void checkColumn( size_t allowed_collisions = 0, size_t max_collisions_to_print = 10) { + ASSERT_EQ(hash.size(), eq_class.size()); + auto print_for_row = [&](size_t row) { std::string res = "row: " + std::to_string(row); @@ -568,7 +570,7 @@ TEST(WeakHash32, ColumnConst) auto cls = ColumnUInt8::create(); auto & data = cls->getData(); - for (size_t i = 0; i < 265; ++i) + for (size_t i = 0; i < 256; ++i) data.push_back(0); auto col_const = ColumnConst::create(std::move(inner_col), 256);