Skip to content

Commit

Permalink
More cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-parent committed Dec 6, 2024
1 parent a8d3414 commit 5232aca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ CheckOptions:
- key: misc-include-cleaner.IgnoreHeaders
value: >
boost/test/.*;
__chrono/.*;
boost/multiprecision/.*
__chrono/.*
HeaderFilterRegex: "^.*\/stlab\/.*$"
# WarningsAsErrors: "*"
3 changes: 1 addition & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CPMAddPackage(
VERSION 1.86.0
URL https://github.com/boostorg/boost/releases/download/boost-1.86.0/boost-1.86.0-cmake.tar.xz
URL_HASH SHA256=2c5ec5edcdff47ff55e27ed9560b0a0b94b07bd07ed9928b476150e16b0efc57
OPTIONS "BOOST_ENABLE_CMAKE ON" "BOOST_INCLUDE_LIBRARIES test\\\;multiprecision" # Note the escapes! container\\\;asio
OPTIONS "BOOST_ENABLE_CMAKE ON" "BOOST_INCLUDE_LIBRARIES test" # Note the escapes! container\\\;asio
)

add_executable(stlab.test.channel
Expand Down Expand Up @@ -52,7 +52,6 @@ add_library(stlab::testing ALIAS testing)

target_link_libraries(testing INTERFACE
Boost::unit_test_framework
Boost::multiprecision
stlab::development
stlab::stlab)

Expand Down
8 changes: 4 additions & 4 deletions test/future_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,12 +772,12 @@ BOOST_AUTO_TEST_CASE(future_reduction_executor) {
auto f = make_ready_future(5, outer_executor) |
[&](int x) { return make_ready_future(x, inner_executor); };

BOOST_REQUIRE_EQUAL(1, outer_count);
BOOST_REQUIRE_EQUAL(0, inner_count);
BOOST_REQUIRE_EQUAL(1u, outer_count);
BOOST_REQUIRE_EQUAL(0u, inner_count);

auto f1 = f | [](int x) { return x; };

BOOST_REQUIRE_EQUAL(2, outer_count);
BOOST_REQUIRE_EQUAL(0, inner_count);
BOOST_REQUIRE_EQUAL(2u, outer_count);
BOOST_REQUIRE_EQUAL(0u, inner_count);
BOOST_REQUIRE_EQUAL(5, *f1.get_try());
}

0 comments on commit 5232aca

Please sign in to comment.