From cde98360dd12ebdddf0ef2e27ecea931e650fc7c Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Wed, 28 Feb 2024 02:05:24 +0100 Subject: [PATCH] Test: intset: proper bucket count for Negative test INTxx_MIN % 1 would not produce a negative number, so the test was flawed. --- test/cpp/intset/test_intset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cpp/intset/test_intset.cpp b/test/cpp/intset/test_intset.cpp index 38403b604105..2f85bea960c4 100644 --- a/test/cpp/intset/test_intset.cpp +++ b/test/cpp/intset/test_intset.cpp @@ -96,7 +96,7 @@ TEST(InsetTest, Negative) { constexpr auto n = std::numeric_limits::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));