Skip to content

Commit

Permalink
Fix the unit test for release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
joka921 committed Jul 25, 2024
1 parent 287f4ed commit b33b6a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/EngineTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ TEST(Engine, countDistinct) {
t1 = makeIdTableFromVector(
{{0, 0}, {1, 4}, {1, 3}, {1, 4}, {1, 4}, {4, 4}, {4, 5}, {4, 7}});

AD_EXPECT_THROW_WITH_MESSAGE(Engine::countDistinct(t1, noop),
::testing::HasSubstr("must be sorted"));
if constexpr (ad_utility::areExpensiveChecksEnabled) {
AD_EXPECT_THROW_WITH_MESSAGE(Engine::countDistinct(t1, noop),
::testing::HasSubstr("must be sorted"));
}
}

0 comments on commit b33b6a8

Please sign in to comment.