Skip to content

Commit

Permalink
Use CompareRecursive for column to array comparisons in ColumnIPv4 an…
Browse files Browse the repository at this point in the history
…d ColumnDateTime unit-tests
  • Loading branch information
bduminiuc committed Sep 28, 2023
1 parent 0f60442 commit c850370
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ut/columns_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ TEST(ColumnsCase, DateTime_construct_from_rvalue_data) {
auto data = expected;
auto col1 = std::make_shared<ColumnDateTime>(std::move(data));

ASSERT_EQ(col1->Size(), expected.size());
for (size_t i = 0; i < expected.size(); ++i) {
ASSERT_EQ(col1->At(i), static_cast<std::time_t>(expected[i]));
}
EXPECT_TRUE(CompareRecursive(*col1, expected));
}

TEST(ColumnsCase, DateTime64_0) {
Expand Down Expand Up @@ -576,7 +573,7 @@ TEST(ColumnsCase, ColumnIPv4_construct_from_rvalue_data) {
};

auto col = ColumnIPv4(std::move(data));
ASSERT_EQ(col.Size(), expected.size());
EXPECT_TRUE(CompareRecursive(col, expected));
}

TEST(ColumnsCase, ColumnIPv6)
Expand Down

0 comments on commit c850370

Please sign in to comment.