Skip to content

Commit

Permalink
Test: intset: proper bucket count for Negative test
Browse files Browse the repository at this point in the history
INTxx_MIN % 1 would not produce a negative number, so the test was flawed.
  • Loading branch information
black-sliver committed Feb 28, 2024
1 parent 30f5d49 commit cde9836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cpp/intset/test_intset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ TEST(InsetTest, Negative)
{
constexpr auto n = std::numeric_limits<int64_t>::min();
static_assert(n < 0, "n not negative");
int64Set *set = int64Set_new(1);
int64Set *set = int64Set_new(3);
ASSERT_TRUE(set);
EXPECT_FALSE(int64Set_contains(set, n));
EXPECT_TRUE(int64Set_add(set, n));
Expand Down

0 comments on commit cde9836

Please sign in to comment.