Skip to content

Commit

Permalink
Adjust test cases for greater coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Nov 8, 2024
1 parent 3466b3d commit f5a11a0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/engine/CartesianProductJoinTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,18 +542,21 @@ TEST_P(CartesianProductJoinLazyTest, tablesAccumulatedBiggerThanChunk) {

IdTable table2{2, ad_utility::testing::makeAllocator()};
table2.resize(rootSize);
std::ranges::copy(std::views::iota(static_cast<int64_t>(0),
static_cast<int64_t>(rootSize)) |
std::ranges::copy(std::views::iota(static_cast<int64_t>(rootSize),
static_cast<int64_t>(rootSize * 2)) |
std::views::transform(Id::makeFromInt),
table2.getColumn(0).begin());
std::ranges::copy(std::views::iota(static_cast<int64_t>(-rootSize),
static_cast<int64_t>(0)) |
std::ranges::copy(std::views::iota(static_cast<int64_t>(-rootSize * 2),
static_cast<int64_t>(-rootSize)) |
std::views::transform(Id::makeFromInt),
table2.getColumn(1).begin());

std::vector<IdTable> tables;
tables.push_back(std::move(table1));
tables.push_back(std::move(table2));
tables.push_back(makeIdTableFromVector({{0, 10}, {1, 11}, {2, 12}}));
tables.push_back(
makeIdTableFromVector({{100, 1000}, {101, 1001}, {102, 1002}}));

auto occurenceCounts = getOccurenceCountWithoutLimit(tables);
auto valueCount = getValueCount(tables);
Expand Down

0 comments on commit f5a11a0

Please sign in to comment.