Skip to content

Commit

Permalink
More test cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-parent committed Dec 6, 2024
1 parent eb36742 commit a8d3414
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/future_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ BOOST_AUTO_TEST_CASE(future_int_detach_without_execution) {
}
std::cout << counter;

BOOST_REQUIRE_EQUAL(size_t{0}, counter.remaining());
BOOST_REQUIRE_EQUAL(0u, counter.remaining());
BOOST_REQUIRE(check);
}

Expand All @@ -595,7 +595,7 @@ BOOST_AUTO_TEST_CASE(future_move_only_detach_without_execution) {
}
std::cout << counter;

BOOST_REQUIRE_EQUAL(0, counter.remaining());
BOOST_REQUIRE_EQUAL(0u, counter.remaining());
BOOST_REQUIRE(check);
}

Expand All @@ -609,7 +609,7 @@ BOOST_AUTO_TEST_CASE(future_void_detach_without_execution) {
}
std::cout << counter;

BOOST_REQUIRE_EQUAL(0, counter.remaining());
BOOST_REQUIRE_EQUAL(0u, counter.remaining());
BOOST_REQUIRE(check);
}

Expand Down
4 changes: 2 additions & 2 deletions test/future_then_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ BOOST_AUTO_TEST_CASE(future_continuation_async_move_only_container) {
check_valid_future(sut);
auto result = stlab::await(std::move(sut));

BOOST_REQUIRE_EQUAL(std::size_t{3}, result.size());
BOOST_REQUIRE_EQUAL(3u, result.size());
BOOST_REQUIRE_EQUAL(10, result[0].member());
BOOST_REQUIRE_EQUAL(42, result[1].member());
BOOST_REQUIRE_EQUAL(50, result[2].member());
Expand All @@ -818,7 +818,7 @@ BOOST_AUTO_TEST_CASE(future_continuation_async_move_only_container) {
check_valid_future(sut);
auto result = stlab::await(std::move(sut));

BOOST_REQUIRE_EQUAL(size_t{3}, result.size());
BOOST_REQUIRE_EQUAL(3u, result.size());
BOOST_REQUIRE_EQUAL(10, result[0].member());
BOOST_REQUIRE_EQUAL(42, result[1].member());
BOOST_REQUIRE_EQUAL(50, result[2].member());
Expand Down
2 changes: 1 addition & 1 deletion test/future_when_all_range_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ BOOST_AUTO_TEST_CASE(
wait_until_future_fails<test_exception>(copy(sut));

check_failure<test_exception>(sut, "failure");
BOOST_REQUIRE_EQUAL(size_t{0}, r);
BOOST_REQUIRE_EQUAL(0u, r);
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit a8d3414

Please sign in to comment.