Skip to content

Commit 97007e2

Browse files
committed
test: Prevent UB in minisketch_tests.cpp
1 parent 5e82b9b commit 97007e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/minisketch_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BOOST_AUTO_TEST_CASE(minisketch_test)
4040
Minisketch sketch_c = std::move(sketch_ar);
4141
sketch_c.Merge(sketch_br);
4242
auto dec = sketch_c.Decode(errors);
43-
BOOST_CHECK(dec.has_value());
43+
BOOST_REQUIRE(dec.has_value());
4444
auto sols = std::move(*dec);
4545
std::sort(sols.begin(), sols.end());
4646
for (uint32_t i = 0; i < a_not_b; ++i) BOOST_CHECK_EQUAL(sols[i], start_a + i);

0 commit comments

Comments
 (0)