{"sha":"e126676725fec8fe539258f1888d4e3b064dd7eb","node_id":"C_kwDOAiB0YNoAKGUxMjY2NzY3MjVmZWM4ZmU1MzkyNThmMTg4OGQ0ZTNiMDY0ZGQ3ZWI","commit":{"author":{"name":"Sean Parent","email":"sean.parent@stlab.cc","date":"2026-02-28T01:12:09Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2026-02-28T01:12:09Z"},"message":"Improvements to coroutine support for `future<>` (#590)\n\n* Refactor tests to use doctest and update CMake configuration\n\nReplaced Boost.Test with doctest in all test files for improved testing framework consistency. Updated CMakeLists.txt to set the default C++ standard to C++20 and added new build presets for various debug configurations. Integrated doctest as a dependency for testing. Removed redundant CMake configurations related to Boost. This enhances the overall test structure and ensures compatibility with modern C++ standards.\n\n* Coroutine Fixes\n\n* Reworking Coroutine Support\n\n- More efficient\n- Correctly handles cancellation\n- Doesn't leak CR handles.\n\n* Start of inline documentation\n\n* Enhance CMake configuration and future functionality\n\n- Added support for AddressSanitizer (ASan) in CMake for both library and test targets.\n- Updated CMakeLists.txt to include CTest and reorganized module paths.\n- Introduced new coroutine tests for `resume_on` functionality with executors.\n- Enhanced `future` class with new methods for completion handling and coroutine support.\n\n* Improving process to build docs\n\n* Update CMake configuration and improve clang-tidy settings\n\n- Removed hardcoded C++ standard from .clang-tidy to avoid conflicts with clang-cl on Windows.\n- Enhanced CMakeLists.txt to ensure C++ exceptions are always enabled across compilers.\n- Updated CMakePresets.json to provide clearer instructions for using clang-tidy on Windows and added a new preset for clang-tidy-win64.\n- Refactored future and channel implementations to exclude enum types from operator overloads, improving type safety.\n- Cleaned up test files by removing unused includes and redundant test helper files.\n\n* Remove unused include for string in channel_tests.cpp to clean up code.\n\n* Update CMake presets and GitHub Actions for Clang and sanitizer support\n\n- Changed CMake version from 10 to 8 in CMakePresets.json.\n- Added new presets for Clang with libc++ and sanitizer configurations for Linux.\n- Updated GitHub Actions workflow to include a new job for macOS TSan builds, enhancing testing capabilities with ThreadSanitizer.\n\n* Enhance CMake presets and GitHub Actions for portable sanitizer support\n\n- Added a new CMake preset for a debug build with ThreadSanitizer and a portable task system.\n- Updated GitHub Actions workflow to include a job for macOS builds using the new portable sanitizer preset.\n- Improved documentation in the future.hpp file for clarity on completion handling.\n\n* clang-format\n\n* Check point\n\nFixed issue with escaped coroutine handles. Still we need to allow escape for other awaiters.\n\n* Enhance coroutine handling in future implementation\n\n- Introduced atomic management of coroutine handles in shared_task to ensure proper destruction and ownership transfer.\n- Updated final_suspend behavior in coroutine traits to utilize the new final_awaiter, improving coroutine lifecycle management.\n- Added tests for handling coroutine escape scenarios, ensuring that coroutine handles are correctly managed after future destruction.\n\n* Refactor coroutine handling in future implementation\n\n- Improved clarity and formatting in the `shared` and `resume_on_awaiter_with_control` structures for better readability.\n- Updated `await_ready` logic to conditionally skip suspension based on the `AllowSkipSuspend` template parameter.\n- Introduced a new test case for `resume_on` with explicit executor handling, ensuring proper coroutine behavior with cancelled futures.\n\n* Remove redundant coroutine handle storage in future implementation\n\n- Eliminated unnecessary storage of coroutine handles in the `std::coroutine_traits` for both `stlab::future<T>` and `stlab::future<void>`, streamlining coroutine management.\n- This change enhances clarity and reduces potential overhead in coroutine lifecycle handling.\n\n* Add implementation notes for coroutine ownership and destruction in future.hpp\n\n- Documented coroutine ownership and destruction rules, clarifying safe destroy points and management of coroutine handles during suspension.\n- Enhanced understanding of coroutine lifecycle in relation to stlab::future, ensuring proper handling during abandonment and final suspension.\n\n* Refactor coroutine handling and improve documentation in future.hpp\n\n- Updated the `weak_state` friend function template to support variadic arguments for better flexibility.\n- Enhanced the `await_ready` method in `resume_on_awaiter_with_control` to improve clarity with explicit conditional logic.\n- Removed unnecessary debug output from coroutine tests to streamline test execution and focus on results.\n\n* Refactor coroutine handle storage in future.hpp\n\n- Changed the type of `_co_handle` in `shared_task` from `void*` to `uintptr_t` to prevent false positives in GCC 13 regarding string operations.\n- Updated coroutine handle management in `resume_on_awaiter_with_control` and `std::coroutine_traits` to use `uintptr_t`, ensuring proper type safety and clarity in coroutine address handling.\n- Adjusted memory order semantics for atomic operations to use `0` instead of `nullptr` for consistency.\n\n* Update GitHub Actions and matrix configuration for improved compatibility\n\n- Simplified compiler names in the matrix configuration for clarity.\n- Updated all compiler versions to 'latest' and OS to 'ubuntu-latest' for consistency across environments.\n- Changed the GitHub Actions runner from 'ubuntu-22.04' to 'ubuntu-latest' for better support.\n- Upgraded the checkout action to version 6 for enhanced performance and features.\n- Added a step to set up MSVC for Windows builds, improving the workflow for Windows users.\n\n* Update GitHub Actions matrix configuration and remove redundant environment variable steps\n\n- Removed version specifications for compilers in the matrix configuration to streamline setup.\n- Eliminated unnecessary environment variable steps for Linux GCC and Clang in the workflow, simplifying the configuration process.\n\n* Enhance GitHub Actions workflow and refine coroutine handle management\n\n- Added steps to set environment variables for GCC and Clang compilers in the GitHub Actions workflow, improving build configuration for Linux.\n- Updated coroutine handle management in `future.hpp` to use `void*` instead of `uintptr_t`, addressing GCC warnings and ensuring proper type handling.\n- Adjusted memory order semantics for atomic operations to utilize `nullptr`, enhancing clarity and consistency in coroutine lifecycle management.\n\n* Refactor coroutine handle management in future.hpp\n\n- Changed the storage type of `_co_handle` in `shared_task` from `std::atomic<void*>` to `void*`, simplifying the management of coroutine handles.\n- Removed unnecessary atomic operations and diagnostic pragmas, enhancing code clarity and reducing complexity.\n- Updated coroutine handle assignment in `await_suspend` and `await_transform` methods to directly use the pointer, streamlining the coroutine lifecycle management.\n\n* Refactor coroutine handle management in future.hpp\n\n- Removed unnecessary initialization of `_co_handle` in the `operator()` method of `shared`, simplifying the coroutine invocation process.\n- Updated implementation notes to clarify the destruction rules for coroutine handles, ensuring better understanding of their lifecycle management.\n\n* Fix coroutine handle destruction in shared_task\n\n- Added a null check for `_co_handle` before calling `destroy()` in the destructor of `shared_task`, preventing potential undefined behavior when the handle is not initialized. This enhances the safety and reliability of coroutine management.\n\n* Improve coroutine handle management in future.hpp\n\n- Clear _co_handle before invoking packaged_task to prevent destruction of the coroutine in ~shared_task().\n- Update final_awaiter to destroy the coroutine handle directly in await_suspend, ensuring proper lifecycle management.\n- Refine implementation notes for clarity on coroutine ownership and destruction rules.\n\n* Add test for exception handling in co_await with future\n\n- Introduced a new test case to verify the behavior of coroutines when an exception is thrown during a co_await operation.\n- The test ensures that the coroutine correctly catches the exception and returns the expected value, enhancing the robustness of coroutine handling in future operations.","tree":{"sha":"813380b360fd61e38aeca2f5aa7a6b0ea18481b3","url":"https://api.github.com/repos/stlab/stlab/git/trees/813380b360fd61e38aeca2f5aa7a6b0ea18481b3"},"url":"https://api.github.com/repos/stlab/stlab/git/commits/e126676725fec8fe539258f1888d4e3b064dd7eb","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJpokDpCRC1aQ7uu5UhlAAAnGkQADwXEpm2zw7pyhyHv6gC4ZVM\nDQTrjKRW11SI9GP4CaOmO7yeUuu9eYGLVu7Wktey546CVUlwjrzoY7ZYF/Yki+Rf\nMJKIVV1niixYw5wXzzFjWZhlgjG5w7wk5eZ2rjplz8CcR7y2hTmcTqDcxleLAYPh\n7TUxN2o+EylM7N1MC+7hF3zpWXvhHm4grXjjT1XHqpl96xUhCXCXeXRDsgonqk/u\n+pkk2z3KHHulVLyvzehUuqpksY3R1rTo2Mt/av/yHV5ZcOgWtYyy4a4fPWKAn/JI\nIseMyMNIJRu9nbBhB03UZaHO7vqWe1+sdGuRGDXYC6OI3+7ATFViuwJ0uQagvY2w\nPmcZ+9FTVxwIknrbf61VnS/r5u0Q9qnAGNkmXbx3sTeyCOBh7GyzKUVKT2afzpNT\nnDCEQceuloHuus+xMMgwRiTYYzrPHeIXAUTeF7Jgm2MaReMCy4Hw0NUvbTwYRa67\nxu0Z4ct4OLe3fwLEBVLUdtJusO2zLjVhSvHthMxuEBXOK6W17V9sHTB/j6jDX0IN\n5koFh/tW5MO6VIzV77FYN2aHpzTe+qk4D2IkIs7ZbwQS7Ct7mvXDt2gVnibrfnoL\n3xo9L5Zq7hjZr8U5s3MT9mOygKEE1NRaUqAZveZS8WLNMn6j5Ity0VTwXHAQWIa9\nhJaR1U+rcHe1krDjR0fx\n=B8dl\n-----END PGP SIGNATURE-----\n","payload":"tree 813380b360fd61e38aeca2f5aa7a6b0ea18481b3\nparent 4fef5be97701b4bd6938b833bb9db7ee7f1325ad\nauthor Sean Parent <sean.parent@stlab.cc> 1772241129 -0800\ncommitter GitHub <noreply@github.com> 1772241129 -0800\n\nImprovements to coroutine support for `future<>` (#590)\n\n* Refactor tests to use doctest and update CMake configuration\n\nReplaced Boost.Test with doctest in all test files for improved testing framework consistency. Updated CMakeLists.txt to set the default C++ standard to C++20 and added new build presets for various debug configurations. Integrated doctest as a dependency for testing. Removed redundant CMake configurations related to Boost. This enhances the overall test structure and ensures compatibility with modern C++ standards.\n\n* Coroutine Fixes\n\n* Reworking Coroutine Support\n\n- More efficient\n- Correctly handles cancellation\n- Doesn't leak CR handles.\n\n* Start of inline documentation\n\n* Enhance CMake configuration and future functionality\n\n- Added support for AddressSanitizer (ASan) in CMake for both library and test targets.\n- Updated CMakeLists.txt to include CTest and reorganized module paths.\n- Introduced new coroutine tests for `resume_on` functionality with executors.\n- Enhanced `future` class with new methods for completion handling and coroutine support.\n\n* Improving process to build docs\n\n* Update CMake configuration and improve clang-tidy settings\n\n- Removed hardcoded C++ standard from .clang-tidy to avoid conflicts with clang-cl on Windows.\n- Enhanced CMakeLists.txt to ensure C++ exceptions are always enabled across compilers.\n- Updated CMakePresets.json to provide clearer instructions for using clang-tidy on Windows and added a new preset for clang-tidy-win64.\n- Refactored future and channel implementations to exclude enum types from operator overloads, improving type safety.\n- Cleaned up test files by removing unused includes and redundant test helper files.\n\n* Remove unused include for string in channel_tests.cpp to clean up code.\n\n* Update CMake presets and GitHub Actions for Clang and sanitizer support\n\n- Changed CMake version from 10 to 8 in CMakePresets.json.\n- Added new presets for Clang with libc++ and sanitizer configurations for Linux.\n- Updated GitHub Actions workflow to include a new job for macOS TSan builds, enhancing testing capabilities with ThreadSanitizer.\n\n* Enhance CMake presets and GitHub Actions for portable sanitizer support\n\n- Added a new CMake preset for a debug build with ThreadSanitizer and a portable task system.\n- Updated GitHub Actions workflow to include a job for macOS builds using the new portable sanitizer preset.\n- Improved documentation in the future.hpp file for clarity on completion handling.\n\n* clang-format\n\n* Check point\n\nFixed issue with escaped coroutine handles. Still we need to allow escape for other awaiters.\n\n* Enhance coroutine handling in future implementation\n\n- Introduced atomic management of coroutine handles in shared_task to ensure proper destruction and ownership transfer.\n- Updated final_suspend behavior in coroutine traits to utilize the new final_awaiter, improving coroutine lifecycle management.\n- Added tests for handling coroutine escape scenarios, ensuring that coroutine handles are correctly managed after future destruction.\n\n* Refactor coroutine handling in future implementation\n\n- Improved clarity and formatting in the `shared` and `resume_on_awaiter_with_control` structures for better readability.\n- Updated `await_ready` logic to conditionally skip suspension based on the `AllowSkipSuspend` template parameter.\n- Introduced a new test case for `resume_on` with explicit executor handling, ensuring proper coroutine behavior with cancelled futures.\n\n* Remove redundant coroutine handle storage in future implementation\n\n- Eliminated unnecessary storage of coroutine handles in the `std::coroutine_traits` for both `stlab::future<T>` and `stlab::future<void>`, streamlining coroutine management.\n- This change enhances clarity and reduces potential overhead in coroutine lifecycle handling.\n\n* Add implementation notes for coroutine ownership and destruction in future.hpp\n\n- Documented coroutine ownership and destruction rules, clarifying safe destroy points and management of coroutine handles during suspension.\n- Enhanced understanding of coroutine lifecycle in relation to stlab::future, ensuring proper handling during abandonment and final suspension.\n\n* Refactor coroutine handling and improve documentation in future.hpp\n\n- Updated the `weak_state` friend function template to support variadic arguments for better flexibility.\n- Enhanced the `await_ready` method in `resume_on_awaiter_with_control` to improve clarity with explicit conditional logic.\n- Removed unnecessary debug output from coroutine tests to streamline test execution and focus on results.\n\n* Refactor coroutine handle storage in future.hpp\n\n- Changed the type of `_co_handle` in `shared_task` from `void*` to `uintptr_t` to prevent false positives in GCC 13 regarding string operations.\n- Updated coroutine handle management in `resume_on_awaiter_with_control` and `std::coroutine_traits` to use `uintptr_t`, ensuring proper type safety and clarity in coroutine address handling.\n- Adjusted memory order semantics for atomic operations to use `0` instead of `nullptr` for consistency.\n\n* Update GitHub Actions and matrix configuration for improved compatibility\n\n- Simplified compiler names in the matrix configuration for clarity.\n- Updated all compiler versions to 'latest' and OS to 'ubuntu-latest' for consistency across environments.\n- Changed the GitHub Actions runner from 'ubuntu-22.04' to 'ubuntu-latest' for better support.\n- Upgraded the checkout action to version 6 for enhanced performance and features.\n- Added a step to set up MSVC for Windows builds, improving the workflow for Windows users.\n\n* Update GitHub Actions matrix configuration and remove redundant environment variable steps\n\n- Removed version specifications for compilers in the matrix configuration to streamline setup.\n- Eliminated unnecessary environment variable steps for Linux GCC and Clang in the workflow, simplifying the configuration process.\n\n* Enhance GitHub Actions workflow and refine coroutine handle management\n\n- Added steps to set environment variables for GCC and Clang compilers in the GitHub Actions workflow, improving build configuration for Linux.\n- Updated coroutine handle management in `future.hpp` to use `void*` instead of `uintptr_t`, addressing GCC warnings and ensuring proper type handling.\n- Adjusted memory order semantics for atomic operations to utilize `nullptr`, enhancing clarity and consistency in coroutine lifecycle management.\n\n* Refactor coroutine handle management in future.hpp\n\n- Changed the storage type of `_co_handle` in `shared_task` from `std::atomic<void*>` to `void*`, simplifying the management of coroutine handles.\n- Removed unnecessary atomic operations and diagnostic pragmas, enhancing code clarity and reducing complexity.\n- Updated coroutine handle assignment in `await_suspend` and `await_transform` methods to directly use the pointer, streamlining the coroutine lifecycle management.\n\n* Refactor coroutine handle management in future.hpp\n\n- Removed unnecessary initialization of `_co_handle` in the `operator()` method of `shared`, simplifying the coroutine invocation process.\n- Updated implementation notes to clarify the destruction rules for coroutine handles, ensuring better understanding of their lifecycle management.\n\n* Fix coroutine handle destruction in shared_task\n\n- Added a null check for `_co_handle` before calling `destroy()` in the destructor of `shared_task`, preventing potential undefined behavior when the handle is not initialized. This enhances the safety and reliability of coroutine management.\n\n* Improve coroutine handle management in future.hpp\n\n- Clear _co_handle before invoking packaged_task to prevent destruction of the coroutine in ~shared_task().\n- Update final_awaiter to destroy the coroutine handle directly in await_suspend, ensuring proper lifecycle management.\n- Refine implementation notes for clarity on coroutine ownership and destruction rules.\n\n* Add test for exception handling in co_await with future\n\n- Introduced a new test case to verify the behavior of coroutines when an exception is thrown during a co_await operation.\n- The test ensures that the coroutine correctly catches the exception and returns the expected value, enhancing the robustness of coroutine handling in future operations.","verified_at":"2026-02-28T01:12:09Z"}},"url":"https://api.github.com/repos/stlab/stlab/commits/e126676725fec8fe539258f1888d4e3b064dd7eb","html_url":"https://github.com/stlab/stlab/commit/e126676725fec8fe539258f1888d4e3b064dd7eb","comments_url":"https://api.github.com/repos/stlab/stlab/commits/e126676725fec8fe539258f1888d4e3b064dd7eb/comments","author":{"login":"sean-parent","id":2279724,"node_id":"MDQ6VXNlcjIyNzk3MjQ=","avatar_url":"https://avatars.githubusercontent.com/u/2279724?v=4","gravatar_id":"","url":"https://api.github.com/users/sean-parent","html_url":"https://github.com/sean-parent","followers_url":"https://api.github.com/users/sean-parent/followers","following_url":"https://api.github.com/users/sean-parent/following{/other_user}","gists_url":"https://api.github.com/users/sean-parent/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-parent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-parent/subscriptions","organizations_url":"https://api.github.com/users/sean-parent/orgs","repos_url":"https://api.github.com/users/sean-parent/repos","events_url":"https://api.github.com/users/sean-parent/events{/privacy}","received_events_url":"https://api.github.com/users/sean-parent/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"4fef5be97701b4bd6938b833bb9db7ee7f1325ad","url":"https://api.github.com/repos/stlab/stlab/commits/4fef5be97701b4bd6938b833bb9db7ee7f1325ad","html_url":"https://github.com/stlab/stlab/commit/4fef5be97701b4bd6938b833bb9db7ee7f1325ad"}],"stats":{"total":4745,"additions":2472,"deletions":2273},"files":[{"sha":"3b30ed5779f7cb287d1bba4cbdd438dbc3573f6f","filename":".clang-tidy","status":"modified","additions":4,"deletions":3,"changes":7,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/.clang-tidy","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/.clang-tidy","contents_url":"https://api.github.com/repos/stlab/stlab/contents/.clang-tidy?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -1,5 +1,5 @@\n-ExtraArgs:\n-  - \"-std=c++17\"\n+# Standard comes from the compile command (CMake); -std=c++17 here would be\n+# wrong when using clang-cl (clang-tidy-win64 on Windows) which expects /std:c++17.\n Checks: >\n   cert-*,\n   performance-*,\n@@ -16,5 +16,6 @@ CheckOptions:\n       boost/test/.*;\n       __chrono/.*\n HeaderFilterRegex: \"^.*/include/stlab/.*$\"\n-# ExcludeHeaderRegex: \"^.*/boost/.*$|^.*Program Files.*$\"\n+# Exclude third-party and system headers from diagnostics (doctest, CPM cache, Program Files).\n+ExcludeHeaderFilterRegex: \"^.*(doctest|\\\\.cache[/\\\\\\\\]cpm|Program Files).*$\"\n # WarningsAsErrors: \"*\""},{"sha":"34ea02696f8c343b32812fc6ea6f1e7eb7bf9840","filename":".cursor/rules/documentation-contracts.mdc","status":"added","additions":77,"deletions":0,"changes":77,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/.cursor%2Frules%2Fdocumentation-contracts.mdc","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/.cursor%2Frules%2Fdocumentation-contracts.mdc","contents_url":"https://api.github.com/repos/stlab/stlab/contents/.cursor%2Frules%2Fdocumentation-contracts.mdc?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -0,0 +1,77 @@\n+---\n+description: Documentation by contract (Better Code ch.2) using Doxygen and /// brief comments\n+globs: \"**/*.hpp,**/*.h,**/*.cpp\"\n+alwaysApply: false\n+---\n+\n+# Documentation by Contract (Doxygen)\n+\n+Follow *programming by contract* as in [Better Code — Contracts](https://github.com/stlab/better-code/blob/main/better-code/src/chapter-2-contracts.md). Treat the contract as the component’s interface: clients depend on it.\n+\n+## Syntax\n+\n+- **Brief / single-line**: Use `///` (Doxygen).\n+- **File header**: Use a Doxygen block `/** ... */` at the top of each file. Do not use a leading `*` on each line. Describe the **purpose** and **functionality** of the public API only (no `detail` or implementation-only names in the file description); treat it as a short tutorial (examples may be added separately).\n+- **Long descriptions**: Use `/** ... */` or `///` with `@param`, `@pre`, `@post`, `@return`, etc. as needed.\n+- **Markdown in descriptions**: Use markdown within comments for identifiers and code. Put parameter names, function names, and type names in backticks, e.g. `` `f` ``, `` `executor` ``, `` `is_ready()` ``.\n+\n+## File header\n+\n+Every file must start with a Doxygen block comment that states what the file is for, how its main types and functions behave, and how they work together—a short tutorial (no leading `*` on each line; add examples elsewhere if desired). Describe functionality that affects usage (e.g. cancellation on destruction, copyable vs move-only and multiple vs single continuation, when continuations run). The top-level description is for the **public API only**: do not mention or reference anything in the `detail` namespace or other implementation-only components; those may be documented in place next to their declarations.\n+\n+```cpp\n+/**\n+Concurrency primitives: futures, executors, and channels.\n+\n+Key types: `future<T>`, `promise<T>`, `channel<T>`. Use future/promise for\n+one-shot async results; use channel for producer-consumer streams. Tasks are\n+canceled when the future is destroyed. ...\n+*/\n+```\n+\n+## Per-declaration contract\n+\n+Document **every** declaration (types, functions, methods, non-obvious constants). Put the contract in comments next to the declaration.\n+\n+1. **Summary**: One sentence fragment — what the thing *is* or *does* (and what it returns). End with a period. Use `///` for the summary line.\n+2. **Preconditions**: Only when not obvious from the summary. Use `@pre` or `- Precondition:` in Doxygen.\n+3. **Postconditions**: Usually fully described by the summary; add `@post` only when something important can’t be stated in the summary.\n+4. **Complexity**: Document for any operation that is not O(1) in time or space.\n+\n+Omit preconditions/postconditions that are clearly implied by the summary (e.g. “Removes and returns the last element” implies “container is non-empty”).\n+\n+## Examples\n+\n+```cpp\n+/// Removes and returns the last element.\n+/// @pre The container is non-empty.  (omit if obvious from summary)\n+T pop_back();\n+\n+/// Sorts the elements so that all adjacent pairs satisfy the ordering `comp`.\n+/// @pre `comp` defines a strict weak ordering over the elements.\n+/// Complexity: at most N log N comparisons.\n+template <typename It, typename Compare>\n+void sort(It first, It last, Compare comp);\n+```\n+\n+```cpp\n+/// A resizable random-access sequence of elements of type T.\n+template <typename T>\n+class dynamic_array {\n+  /// The number of elements.  (invariant: non-negative)\n+  size_t size() const;\n+};\n+```\n+\n+## Type invariants\n+\n+For types with non-trivial state, document the **type invariant** (the condition that holds at the public API boundary). Use a short comment near the type or in the file header. Keep implementation-only invariants in non-public comments.\n+\n+## Policies (summary)\n+\n+- Every declaration has a documentation comment with at least a summary.\n+- Pre/postconditions that are implied by the summary need not be repeated.\n+- Document complexity for non-constant-time operations.\n+- File header: `/** ... */` with no leading `*` per line; describe public API only (no `detail`/implementation in the description), as a short tutorial (no inline examples).\n+- Use `///` for brief and single-line comments; Doxygen block `/** ... */` for file header and long descriptions.\n+- Use markdown backticks for parameter/function/type names in comments (e.g. `` `f` ``, `` `executor` ``)."},{"sha":"ae59c143188a75306cbc15e7106e2f9984273b91","filename":".gitattributes","status":"added","additions":5,"deletions":0,"changes":5,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/.gitattributes","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/.gitattributes","contents_url":"https://api.github.com/repos/stlab/stlab/contents/.gitattributes?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -0,0 +1,5 @@\n+# Shell scripts must use LF so they run correctly in Linux (e.g. in Docker).\n+*.sh text eol=lf\n+\n+# Documentation under docs/include (e.g. generated) use LF.\n+docs/include/** text eol=lf"},{"sha":"68749c1d997a8fab215100766e417d531c7b7965","filename":".github/matrix.json","status":"modified","additions":8,"deletions":12,"changes":20,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/.github%2Fmatrix.json","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/.github%2Fmatrix.json","contents_url":"https://api.github.com/repos/stlab/stlab/contents/.github%2Fmatrix.json?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -1,33 +1,29 @@\n {\n   \"config\": [\n     {\n-      \"name\": \"Linux GCC 13\",\n+      \"name\": \"Linux GCC\",\n       \"compiler\": \"gcc\",\n-      \"version\": \"13\",\n-      \"os\": \"ubuntu-24.04\"\n+      \"os\": \"ubuntu-latest\"\n     },\n     {\n-      \"name\": \"Linux Clang 15\",\n+      \"name\": \"Linux Clang\",\n       \"compiler\": \"clang\",\n-      \"version\": \"15\",\n-      \"os\": \"ubuntu-22.04\"\n+      \"os\": \"ubuntu-latest\"\n     },\n     {\n       \"name\": \"macOS apple-clang latest\",\n       \"compiler\": \"apple-clang\",\n-      \"version\": \"latest\",\n       \"os\": \"macos-latest\"\n     },\n     {\n-      \"name\": \"Windows VS2022\",\n+      \"name\": \"Windows\",\n       \"compiler\": \"Visual Studio\",\n-      \"version\": \"17\",\n-      \"os\": \"windows-2022\"\n+      \"os\": \"windows-latest\"\n     },\n     {\n       \"name\": \"Linux Webassembly\",\n       \"compiler\": \"emscripten\",\n-      \"os\": \"ubuntu-22.04\"\n+      \"os\": \"ubuntu-latest\"\n     }\n   ]\n-}\n+}\n\\ No newline at end of file"},{"sha":"ce5cda41df391d7ee92371785e9caea27894731e","filename":".github/workflows/stlab.yml","status":"modified","additions":45,"deletions":21,"changes":66,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/.github%2Fworkflows%2Fstlab.yml","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/.github%2Fworkflows%2Fstlab.yml","contents_url":"https://api.github.com/repos/stlab/stlab/contents/.github%2Fworkflows%2Fstlab.yml?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -9,11 +9,11 @@ on:\n jobs:\n   generate-matrix:\n     name: Generate job matrix\n-    runs-on: ubuntu-22.04\n+    runs-on: ubuntu-latest\n     outputs:\n       matrix: ${{ steps.set-matrix.outputs.matrix }}\n     steps:\n-      - uses: actions/checkout@v4.1.6\n+      - uses: actions/checkout@v6\n \n       - name: Generate job matrix\n         id: set-matrix\n@@ -30,22 +30,12 @@ jobs:\n     name: ${{ matrix.config.name }}\n \n     steps:\n-      - uses: actions/checkout@v4.1.6\n-\n-      - name: Install dependencies // Linux (GCC|Clang)\n-        if: ${{ startsWith(matrix.config.os, 'ubuntu') && !startsWith(matrix.config.compiler, 'emscripten') }}\n-        run: |\n-          sudo apt-get update\n-          sudo apt-get install -y ninja-build\n-        shell: bash\n+      - uses: actions/checkout@v6\n \n       - name: Install dependencies // Linux Emscripten\n         if: ${{ startsWith(matrix.config.compiler, 'emscripten') }}\n         shell: bash\n         run: |\n-          sudo apt-get update\n-          sudo apt-get install -y ninja-build\n-\n           git clone --depth 1 https://github.com/emscripten-core/emsdk.git $HOME/emsdk\n           pushd $HOME/emsdk\n           ./emsdk install latest\n@@ -62,15 +52,15 @@ jobs:\n         if: ${{ matrix.config.compiler == 'gcc' }}\n         shell: bash\n         run: |\n-          echo \"CC=gcc-${{matrix.config.version}}\" >> $GITHUB_ENV\n-          echo \"CXX=g++-${{matrix.config.version}}\" >> $GITHUB_ENV\n+          echo \"CC=gcc\" >> $GITHUB_ENV\n+          echo \"CXX=g++\" >> $GITHUB_ENV\n \n       - name: Set enviroment variables // Linux Clang\n         if: ${{ matrix.config.compiler == 'clang' }}\n         shell: bash\n         run: |\n-          echo \"CC=clang-${{matrix.config.version}}\" >> $GITHUB_ENV\n-          echo \"CXX=clang++-${{matrix.config.version}}\" >> $GITHUB_ENV\n+          echo \"CC=clang\" >> $GITHUB_ENV\n+          echo \"CXX=clang++\" >> $GITHUB_ENV\n \n       - name: Configure // Unix !Emscripten\n         if: ${{ (startsWith(matrix.config.os, 'ubuntu') || startsWith(matrix.config.os, 'macos')) && !startsWith(matrix.config.compiler, 'emscripten') }}\n@@ -87,11 +77,13 @@ jobs:\n           cmake -S. -B../build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=23 \\\n             -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/cmake/Platform/Emscripten-STLab.cmake\n \n+      - name: Setup MSVC\n+        if: ${{ startsWith(matrix.config.os, 'windows') }}\n+        uses: ilammy/msvc-dev-cmd@v1\n+\n       - name: Configure // Windows\n         if: ${{ startsWith(matrix.config.os, 'windows') }}\n-        shell: cmd\n         run: |\n-          call \"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsall.bat\" x64\n           mkdir ..\\build\n           cmake -S. -B../build -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=20\n \n@@ -103,13 +95,45 @@ jobs:\n \n       - name: Build // Windows\n         if: ${{ startsWith(matrix.config.os, 'windows') }}\n-        shell: cmd\n         run: |\n-          call \"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsall.bat\" x64\n           cmake --build ../build/\n \n       - name: Test\n         shell: bash\n         run: |\n           cd ../build/\n           ctest --output-on-failure --verbose\n+\n+  macos-tsan:\n+    name: macOS TSan\n+    runs-on: macos-latest\n+    steps:\n+      - uses: actions/checkout@v6\n+\n+      - name: Configure\n+        run: cmake --preset debug-sanitizer\n+\n+      - name: Build\n+        run: cmake --build build/debug-sanitizer\n+\n+      - name: Test\n+        run: |\n+          cd build/debug-sanitizer\n+          ctest --output-on-failure --verbose\n+\n+  macos-tsan-portable:\n+    name: macOS TSan (portable)\n+    runs-on: macos-latest\n+    steps:\n+      - uses: actions/checkout@v6\n+\n+      - name: Configure\n+        run: cmake --preset debug-portable-sanitizer\n+\n+      - name: Build\n+        run: cmake --build build/debug-portable-sanitizer\n+\n+      - name: Test\n+        run: |\n+          cd build/debug-portable-sanitizer\n+          ctest --output-on-failure --verbose"},{"sha":"42d624a8803c659c726fedbc9b10fa6a6e0ff1df","filename":"CMakeLists.txt","status":"modified","additions":24,"deletions":11,"changes":35,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/CMakeLists.txt","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/CMakeLists.txt","contents_url":"https://api.github.com/repos/stlab/stlab/contents/CMakeLists.txt?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -15,35 +15,42 @@ include(${cpp-library_SOURCE_DIR}/cpp-library.cmake)\n # Enable dependency tracking BEFORE project()\n cpp_library_enable_dependency_tracking()\n \n+# Set the default C++ language version BEFORE project() so it is applied\n+set(CMAKE_CXX_STANDARD 20 CACHE STRING \"The C++ standard to use\")\n+set(CMAKE_CXX_STANDARD_REQUIRED ON)\n+set(CMAKE_CXX_EXTENSIONS OFF)\n+\n ########################################################\n # Project declaration without hardcoded version\n project(stlab LANGUAGES CXX)\n \n # Set version from git tags after project()\n cpp_library_set_version()\n \n+# Ensure C++ exceptions are always enabled (STLab uses them; some presets/toolchains omit them).\n+add_compile_options(\n+  $<$<CXX_COMPILER_ID:MSVC>:/EHsc>\n+  $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:AppleClang>>:-fexceptions>\n+)\n+\n+include(CTest)\n+\n+list(APPEND CMAKE_MODULE_PATH \"${CMAKE_CURRENT_LIST_DIR}/cmake\")\n+\n # Create the main library target first\n add_library(stlab)\n add_library(stlab::stlab ALIAS stlab)\n \n ########################################################\n \n-# Set the default C++ language version\n-set(CMAKE_CXX_STANDARD 20 CACHE STRING \"The C++ standard to use\")\n-set(CMAKE_CXX_STANDARD_REQUIRED ON)\n-set(CMAKE_CXX_EXTENSIONS OFF)\n-\n # Set the default build type to Release\n if(NOT CMAKE_BUILD_TYPE)\n   set(CMAKE_BUILD_TYPE \"Release\" CACHE STRING \"Choose the type of build\" FORCE)\n endif()\n \n-list(APPEND CMAKE_MODULE_PATH \"${CMAKE_CURRENT_LIST_DIR}/cmake\")\n include(GNUInstallDirs)\n include(CMakeDependentOption)\n include(StlabUtil)\n-# CTest must be included at the top level for tests to be found.\n-include(CTest)\n \n find_package(libdispatch)\n find_package(Qt5 QUIET COMPONENTS Core)\n@@ -54,8 +61,13 @@ cmake_dependent_option(stlab.coverage\n   \"Enable binary instrumentation to collect test coverage information in the DEBUG configuration\"\n   OFF PROJECT_IS_TOP_LEVEL OFF)\n \n-stlab_check_disfunctional_coroutines(STLAB_DEFAULT_NO_STD_COROUTINES)\n-option(STLAB_NO_STD_COROUTINES \"Suppress usage of standard coroutines. Useful for non-conforming compilers.\" ${STLAB_DEFAULT_NO_STD_COROUTINES})\n+# Coroutines are enabled for C++20+ by default. Use STLAB_NO_STD_COROUTINES to\n+# force them off for non-conforming compilers.\n+cmake_dependent_option(STLAB_NO_STD_COROUTINES\n+  \"Suppress usage of standard coroutines. Useful for non-conforming compilers.\"\n+  OFF\n+  \"CMAKE_CXX_STANDARD VERSION_GREATER_EQUAL 20\"\n+  ON)\n if(STLAB_NO_STD_COROUTINES)\n   set(STLAB_STD_COROUTINES 0)\n else()\n@@ -171,12 +183,13 @@ elseif(STLAB_MAIN_EXECUTOR STREQUAL \"qt6\")\n   target_link_libraries(stlab INTERFACE Qt6::Core)\n endif()\n \n-message(STATUS \"stlab: Disable Coroutines: ${STLAB_DEFAULT_NO_STD_COROUTINES}\")\n+message(STATUS \"stlab: Disable Coroutines: ${STLAB_NO_STD_COROUTINES}\")\n message(STATUS \"stlab: Thread System: ${STLAB_THREAD_SYSTEM}\")\n message(STATUS \"stlab: Task System: ${STLAB_TASK_SYSTEM}\")\n message(STATUS \"stlab: Main Executor: ${STLAB_MAIN_EXECUTOR}\")\n \n if(PROJECT_IS_TOP_LEVEL AND BUILD_TESTING)\n+  CPMAddPackage(\"gh:doctest/doctest@2.4.12\")\n   add_subdirectory(test)\n endif()\n "},{"sha":"17ff9022b76d7939a36ccce1898da5cd6e9eef1d","filename":"CMakePresets.json","status":"modified","additions":110,"deletions":6,"changes":116,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/CMakePresets.json","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/CMakePresets.json","contents_url":"https://api.github.com/repos/stlab/stlab/contents/CMakePresets.json?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -1,5 +1,5 @@\n {\n-    \"version\": 10,\n+    \"version\": 8,\n     \"cmakeMinimumRequired\": {\n         \"major\": 3,\n         \"minor\": 28,\n@@ -38,7 +38,8 @@\n             \"hidden\": true,\n             \"inherits\": \"base-cpp20\",\n             \"cacheVariables\": {\n-                \"CMAKE_CXX_FLAGS\": \"-fsanitize=thread -fsanitize=undefined\"\n+                \"CMAKE_CXX_FLAGS\": \"-fsanitize=thread -fsanitize=undefined\",\n+                \"CMAKE_EXE_LINKER_FLAGS\": \"-fsanitize=thread -fsanitize=undefined\"\n             }\n         },\n         {\n@@ -64,6 +65,14 @@\n                 \"STLAB_TASK_SYSTEM\": \"portable\"\n             }\n         },\n+        {\n+            \"name\": \"debug-portable-sanitizer\",\n+            \"description\": \"Debug build with portable task system and TSan+UBSan\",\n+            \"inherits\": \"base-sanitizer\",\n+            \"cacheVariables\": {\n+                \"STLAB_TASK_SYSTEM\": \"portable\"\n+            }\n+        },\n         {\n             \"name\": \"debug-asan\",\n             \"description\": \"Debug build with address sanitizer\",\n@@ -72,6 +81,31 @@\n                 \"STLAB_SANITIZER\": \"address\"\n             }\n         },\n+        {\n+            \"name\": \"debug-clang-libcxx\",\n+            \"description\": \"Debug build with Clang and libc++ (Linux)\",\n+            \"inherits\": \"base-cpp20\",\n+            \"condition\": {\n+                \"type\": \"equals\",\n+                \"lhs\": \"${hostSystemName}\",\n+                \"rhs\": \"Linux\"\n+            },\n+            \"cacheVariables\": {\n+                \"CMAKE_C_COMPILER\": \"clang\",\n+                \"CMAKE_CXX_COMPILER\": \"clang++\",\n+                \"CMAKE_CXX_FLAGS\": \"-stdlib=libc++\",\n+                \"CMAKE_EXE_LINKER_FLAGS\": \"-stdlib=libc++\"\n+            }\n+        },\n+        {\n+            \"name\": \"debug-clang-libcxx-sanitizer\",\n+            \"description\": \"Debug build with Clang, libc++, and UBSan+TSan (Linux)\",\n+            \"inherits\": \"debug-clang-libcxx\",\n+            \"cacheVariables\": {\n+                \"CMAKE_CXX_FLAGS\": \"-stdlib=libc++ -fsanitize=thread -fsanitize=undefined\",\n+                \"CMAKE_EXE_LINKER_FLAGS\": \"-stdlib=libc++ -fsanitize=thread -fsanitize=undefined\"\n+            }\n+        },\n         {\n             \"name\": \"xcode-debug\",\n             \"description\": \"Debug build using Xcode\",\n@@ -107,18 +141,31 @@\n         },\n         {\n             \"name\": \"clang-tidy\",\n-            \"description\": \"Run clang-tidy without fixes\",\n+            \"description\": \"Run clang-tidy without fixes. On Windows with MSVC, the 32-bit clang-tidy can crash (0xC0000005); use clang-tidy-win64 or set CMAKE_CXX_CLANG_TIDY to your VC/Tools/Llvm/x64/bin/clang-tidy.exe\",\n             \"inherits\": \"base-cpp17\",\n             \"cacheVariables\": {\n-                \"CMAKE_CXX_CLANG_TIDY\": \"clang-tidy\"\n+                \"CMAKE_CXX_CLANG_TIDY\": \"clang-tidy;--extra-arg=-std=c++17\"\n+            }\n+        },\n+        {\n+            \"name\": \"clang-tidy-win64\",\n+            \"description\": \"Run clang-tidy using 64-bit LLVM (avoids Windows crash). Requires VCINSTALLDIR (set when Cursor is launched from a Visual Studio developer prompt).\",\n+            \"inherits\": \"clang-tidy\",\n+            \"condition\": {\n+                \"type\": \"equals\",\n+                \"lhs\": \"${hostSystemName}\",\n+                \"rhs\": \"Windows\"\n+            },\n+            \"cacheVariables\": {\n+                \"CMAKE_CXX_CLANG_TIDY\": \"$env{VCINSTALLDIR}Tools/Llvm/x64/bin/clang-tidy.exe;--extra-arg=/std:c++17;--extra-arg=/EHsc\"\n             }\n         },\n         {\n             \"name\": \"clang-tidy-fix\",\n             \"description\": \"Run clang-tidy with auto-fix\",\n             \"inherits\": \"clang-tidy\",\n             \"cacheVariables\": {\n-                \"CMAKE_CXX_CLANG_TIDY\": \"clang-tidy;--fix\"\n+                \"CMAKE_CXX_CLANG_TIDY\": \"clang-tidy;--extra-arg=-std=c++17;--fix\"\n             }\n         },\n         {\n@@ -144,6 +191,38 @@\n         }\n     ],\n     \"buildPresets\": [\n+        {\n+            \"name\": \"debug-cpp20\",\n+            \"configurePreset\": \"debug-cpp20\"\n+        },\n+        {\n+            \"name\": \"debug-cpp17\",\n+            \"configurePreset\": \"debug-cpp17\"\n+        },\n+        {\n+            \"name\": \"debug-sanitizer\",\n+            \"configurePreset\": \"debug-sanitizer\"\n+        },\n+        {\n+            \"name\": \"debug-portable\",\n+            \"configurePreset\": \"debug-portable\"\n+        },\n+        {\n+            \"name\": \"debug-portable-sanitizer\",\n+            \"configurePreset\": \"debug-portable-sanitizer\"\n+        },\n+        {\n+            \"name\": \"debug-asan\",\n+            \"configurePreset\": \"debug-asan\"\n+        },\n+        {\n+            \"name\": \"debug-clang-libcxx\",\n+            \"configurePreset\": \"debug-clang-libcxx\"\n+        },\n+        {\n+            \"name\": \"debug-clang-libcxx-sanitizer\",\n+            \"configurePreset\": \"debug-clang-libcxx-sanitizer\"\n+        },\n         {\n             \"name\": \"clang-tidy-fix\",\n             \"configurePreset\": \"clang-tidy-fix\",\n@@ -153,20 +232,45 @@\n             \"name\": \"clang-tidy\",\n             \"configurePreset\": \"clang-tidy\"\n         },\n+        {\n+            \"name\": \"clang-tidy-win64\",\n+            \"configurePreset\": \"clang-tidy-win64\",\n+            \"description\": \"Build with 64-bit clang-tidy on Windows (avoids crash)\"\n+        },\n         {\n             \"name\": \"include-what-you-use\",\n             \"configurePreset\": \"include-what-you-use\",\n             \"jobs\": 1\n         }\n     ],\n     \"testPresets\": [\n+        {\n+            \"name\": \"debug-cpp20\",\n+            \"description\": \"Run tests with debug-cpp20 build\",\n+            \"configurePreset\": \"debug-cpp20\"\n+        },\n         {\n             \"name\": \"debug-sanitizer-verbose\",\n             \"description\": \"Run tests with sanitizers and verbose output\",\n             \"configurePreset\": \"debug-sanitizer\",\n             \"output\": {\n                 \"verbosity\": \"verbose\"\n             }\n+        },\n+        {\n+            \"name\": \"debug-asan\",\n+            \"description\": \"Run tests with address sanitizer build\",\n+            \"configurePreset\": \"debug-asan\"\n+        },\n+        {\n+            \"name\": \"debug-clang-libcxx\",\n+            \"description\": \"Run tests with Clang + libc++ build\",\n+            \"configurePreset\": \"debug-clang-libcxx\"\n+        },\n+        {\n+            \"name\": \"debug-clang-libcxx-sanitizer\",\n+            \"description\": \"Run tests with Clang + libc++ + UBSan/TSan build\",\n+            \"configurePreset\": \"debug-clang-libcxx-sanitizer\"\n         }\n     ]\n-}\n+}\n\\ No newline at end of file"},{"sha":"d9f7762df73f56ecb184c27cbf157ddc1a0f0c04","filename":"cmake/StlabUtil.cmake","status":"modified","additions":0,"deletions":54,"changes":54,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/cmake%2FStlabUtil.cmake","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/cmake%2FStlabUtil.cmake","contents_url":"https://api.github.com/repos/stlab/stlab/contents/cmake%2FStlabUtil.cmake?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -2,60 +2,6 @@\n # functionality useful for stlab builds.\n \n include( CheckCXXSymbolExists )\n-include( CheckCXXSourceRuns )\n-\n-# Determine if the selected C++ compiler has functional coroutines. Set the\n-# specified 'result_var' to 'TRUE' if they are determined to be disfunctional\n-# and 'FALSE' otherwise. Note that this check consists of a smoke test and does\n-# not check all the ways this feature may be deficient.\n-function( stlab_check_disfunctional_coroutines result_var )\n-  check_cxx_source_runs( \"\n-#include <concepts>\n-#include <coroutine>\n-#include <exception>\n-\n-struct ReturnObject {\n-  struct promise_type {\n-    ReturnObject get_return_object() { return {}; }\n-    std::suspend_never initial_suspend() { return {}; }\n-    std::suspend_never final_suspend() noexcept { return {}; }\n-    void unhandled_exception() {}\n-  };\n-};\n-\n-struct Awaiter {\n-  std::coroutine_handle<> *hp_;\n-  constexpr bool await_ready() const noexcept { return false; }\n-  void await_suspend(std::coroutine_handle<> h) { *hp_ = h; }\n-  constexpr void await_resume() const noexcept {}\n-};\n-\n-ReturnObject\n-counter(std::coroutine_handle<> *continuation_out)\n-{\n-  Awaiter a{continuation_out};\n-  for (unsigned i = 0;; ++i) {\n-    co_await a;\n-  }\n-}\n-\n-int\n-main()\n-{\n-  std::coroutine_handle<> h;\n-  counter(&h);\n-  for (int i = 0; i < 3; ++i) {\n-    h();\n-  }\n-  h.destroy();\n-}\n-\" STLAB_HAVE_FUNCTIONAL_COROUTINES )\n-  if( STLAB_HAVE_FUNCTIONAL_COROUTINES )\n-    set( ${result_var} FALSE PARENT_SCOPE )\n-  else()\n-    set( ${result_var} TRUE PARENT_SCOPE )\n-  endif()\n-endfunction()\n \n # Detect the target platform's thread system and set the specified 'result_var'\n # to the result. The following table shows the correspondence between result"},{"sha":"d2c111bc0e1c92d06f838a625d72724d7fc4c3c5","filename":"cmake/stlab/development.cmake","status":"modified","additions":3,"deletions":0,"changes":3,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/cmake%2Fstlab%2Fdevelopment.cmake","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/cmake%2Fstlab%2Fdevelopment.cmake","contents_url":"https://api.github.com/repos/stlab/stlab/contents/cmake%2Fstlab%2Fdevelopment.cmake?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -8,7 +8,10 @@ include(stlab/development/MSVC)\n \n if(STLAB_SANITIZER STREQUAL \"address\")\n     if(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n+        # Compiler only; linker infers ASan libs automatically\n         add_compile_options(/fsanitize=address)\n+        # Disable incremental linking to avoid LNK4300 with ASan metadata\n+        add_link_options(/INCREMENTAL:NO)\n     elseif(CMAKE_CXX_COMPILER_ID MATCHES \"Clang\" OR CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\")\n         add_compile_options(-fsanitize=address -fno-omit-frame-pointer)\n         add_link_options(-fsanitize=address)"},{"sha":"0e3020327c7e5464248ee5b59ef0fc0f014e8288","filename":"docs/Gemfile.lock","status":"modified","additions":125,"deletions":51,"changes":176,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/docs%2FGemfile.lock","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/docs%2FGemfile.lock","contents_url":"https://api.github.com/repos/stlab/stlab/contents/docs%2FGemfile.lock?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -1,58 +1,58 @@\n GEM\n   remote: https://rubygems.org/\n   specs:\n-    addressable (2.8.7)\n-      public_suffix (>= 2.0.2, < 7.0)\n+    addressable (2.8.8)\n+      public_suffix (>= 2.0.2, < 8.0)\n     base64 (0.3.0)\n-    bigdecimal (3.2.2)\n+    bigdecimal (4.0.1)\n     colorator (1.1.0)\n-    concurrent-ruby (1.3.5)\n+    concurrent-ruby (1.3.6)\n     csv (3.3.5)\n     em-websocket (0.5.3)\n       eventmachine (>= 0.12.9)\n       http_parser.rb (~> 0)\n     eventmachine (1.2.7)\n-    ffi (1.17.2)\n-    ffi (1.17.2-aarch64-linux-gnu)\n-    ffi (1.17.2-aarch64-linux-musl)\n-    ffi (1.17.2-arm-linux-gnu)\n-    ffi (1.17.2-arm-linux-musl)\n-    ffi (1.17.2-arm64-darwin)\n-    ffi (1.17.2-x86-linux-gnu)\n-    ffi (1.17.2-x86-linux-musl)\n-    ffi (1.17.2-x86_64-darwin)\n-    ffi (1.17.2-x86_64-linux-gnu)\n-    ffi (1.17.2-x86_64-linux-musl)\n+    ffi (1.17.3)\n+    ffi (1.17.3-aarch64-linux-gnu)\n+    ffi (1.17.3-aarch64-linux-musl)\n+    ffi (1.17.3-arm-linux-gnu)\n+    ffi (1.17.3-arm-linux-musl)\n+    ffi (1.17.3-arm64-darwin)\n+    ffi (1.17.3-x86-linux-gnu)\n+    ffi (1.17.3-x86-linux-musl)\n+    ffi (1.17.3-x86_64-darwin)\n+    ffi (1.17.3-x86_64-linux-gnu)\n+    ffi (1.17.3-x86_64-linux-musl)\n     forwardable-extended (2.6.0)\n-    google-protobuf (4.31.1)\n+    google-protobuf (4.33.5)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-aarch64-linux-gnu)\n+    google-protobuf (4.33.5-aarch64-linux-gnu)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-aarch64-linux-musl)\n+    google-protobuf (4.33.5-aarch64-linux-musl)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-arm64-darwin)\n+    google-protobuf (4.33.5-arm64-darwin)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-x86-linux-gnu)\n+    google-protobuf (4.33.5-x86-linux-gnu)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-x86-linux-musl)\n+    google-protobuf (4.33.5-x86-linux-musl)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-x86_64-darwin)\n+    google-protobuf (4.33.5-x86_64-darwin)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-x86_64-linux-gnu)\n+    google-protobuf (4.33.5-x86_64-linux-gnu)\n       bigdecimal\n       rake (>= 13)\n-    google-protobuf (4.31.1-x86_64-linux-musl)\n+    google-protobuf (4.33.5-x86_64-linux-musl)\n       bigdecimal\n       rake (>= 13)\n-    http_parser.rb (0.8.0)\n-    i18n (1.14.7)\n+    http_parser.rb (0.8.1)\n+    i18n (1.14.8)\n       concurrent-ruby (~> 1.0)\n     jekyll (4.4.1)\n       addressable (~> 2.4)\n@@ -86,63 +86,64 @@ GEM\n       sass-embedded (~> 1.54)\n     jekyll-watch (2.2.1)\n       listen (~> 3.0)\n-    json (2.12.2)\n-    kramdown (2.5.1)\n-      rexml (>= 3.3.9)\n+    json (2.18.1)\n+    kramdown (2.5.2)\n+      rexml (>= 3.4.4)\n     kramdown-parser-gfm (1.1.0)\n       kramdown (~> 2.0)\n     liquid (4.0.4)\n-    listen (3.9.0)\n+    listen (3.10.0)\n+      logger\n       rb-fsevent (~> 0.10, >= 0.10.3)\n       rb-inotify (~> 0.9, >= 0.9.10)\n     logger (1.7.0)\n     mercenary (0.4.0)\n     pathutil (0.16.2)\n       forwardable-extended (~> 2.6)\n-    public_suffix (6.0.2)\n-    rake (13.3.0)\n+    public_suffix (7.0.2)\n+    rake (13.3.1)\n     rb-fsevent (0.11.2)\n     rb-inotify (0.11.1)\n       ffi (~> 1.0)\n-    rexml (3.4.1)\n-    rouge (4.5.2)\n+    rexml (3.4.4)\n+    rouge (4.7.0)\n     rubyzip (2.4.1)\n     safe_yaml (1.0.5)\n-    sass-embedded (1.89.2)\n+    sass-embedded (1.97.3)\n       google-protobuf (~> 4.31)\n       rake (>= 13)\n-    sass-embedded (1.89.2-aarch64-linux-android)\n+    sass-embedded (1.97.3-aarch64-linux-android)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-aarch64-linux-gnu)\n+    sass-embedded (1.97.3-aarch64-linux-gnu)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-aarch64-linux-musl)\n+    sass-embedded (1.97.3-aarch64-linux-musl)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-arm-linux-androideabi)\n+    sass-embedded (1.97.3-arm-linux-androideabi)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-arm-linux-gnueabihf)\n+    sass-embedded (1.97.3-arm-linux-gnueabihf)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-arm-linux-musleabihf)\n+    sass-embedded (1.97.3-arm-linux-musleabihf)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-arm64-darwin)\n+    sass-embedded (1.97.3-arm64-darwin)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-riscv64-linux-android)\n+    sass-embedded (1.97.3-riscv64-linux-android)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-riscv64-linux-gnu)\n+    sass-embedded (1.97.3-riscv64-linux-gnu)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-riscv64-linux-musl)\n+    sass-embedded (1.97.3-riscv64-linux-musl)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-x86_64-darwin)\n+    sass-embedded (1.97.3-x86_64-darwin)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-x86_64-linux-android)\n+    sass-embedded (1.97.3-x86_64-linux-android)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-x86_64-linux-gnu)\n+    sass-embedded (1.97.3-x86_64-linux-gnu)\n       google-protobuf (~> 4.31)\n-    sass-embedded (1.89.2-x86_64-linux-musl)\n+    sass-embedded (1.97.3-x86_64-linux-musl)\n       google-protobuf (~> 4.31)\n     terminal-table (3.0.2)\n       unicode-display_width (>= 1.1.1, < 3)\n     unicode-display_width (2.6.0)\n-    webrick (1.9.1)\n+    webrick (1.9.2)\n \n PLATFORMS\n   aarch64-linux-android\n@@ -174,5 +175,78 @@ DEPENDENCIES\n   jekyll-remote-theme\n   logger\n \n+CHECKSUMS\n+  addressable (2.8.8) sha256=7c13b8f9536cf6364c03b9d417c19986019e28f7c00ac8132da4eb0fe393b057\n+  base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b\n+  bigdecimal (4.0.1) sha256=8b07d3d065a9f921c80ceaea7c9d4ae596697295b584c296fe599dd0ad01c4a7\n+  colorator (1.1.0) sha256=e2f85daf57af47d740db2a32191d1bdfb0f6503a0dfbc8327d0c9154d5ddfc38\n+  concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab\n+  csv (3.3.5) sha256=6e5134ac3383ef728b7f02725d9872934f523cb40b961479f69cf3afa6c8e73f\n+  em-websocket (0.5.3) sha256=f56a92bde4e6cb879256d58ee31f124181f68f8887bd14d53d5d9a292758c6a8\n+  eventmachine (1.2.7) sha256=994016e42aa041477ba9cff45cbe50de2047f25dd418eba003e84f0d16560972\n+  ffi (1.17.3) sha256=0e9f39f7bb3934f77ad6feab49662be77e87eedcdeb2a3f5c0234c2938563d4c\n+  ffi (1.17.3-aarch64-linux-gnu) sha256=28ad573df26560f0aedd8a90c3371279a0b2bd0b4e834b16a2baa10bd7a97068\n+  ffi (1.17.3-aarch64-linux-musl) sha256=020b33b76775b1abacc3b7d86b287cef3251f66d747092deec592c7f5df764b2\n+  ffi (1.17.3-arm-linux-gnu) sha256=5bd4cea83b68b5ec0037f99c57d5ce2dd5aa438f35decc5ef68a7d085c785668\n+  ffi (1.17.3-arm-linux-musl) sha256=0d7626bb96265f9af78afa33e267d71cfef9d9a8eb8f5525344f8da6c7d76053\n+  ffi (1.17.3-arm64-darwin) sha256=0c690555d4cee17a7f07c04d59df39b2fba74ec440b19da1f685c6579bb0717f\n+  ffi (1.17.3-x86-linux-gnu) sha256=868a88fcaf5186c3a46b7c7c2b2c34550e1e61a405670ab23f5b6c9971529089\n+  ffi (1.17.3-x86-linux-musl) sha256=f0286aa6ef40605cf586e61406c446de34397b85dbb08cc99fdaddaef8343945\n+  ffi (1.17.3-x86_64-darwin) sha256=1f211811eb5cfaa25998322cdd92ab104bfbd26d1c4c08471599c511f2c00bb5\n+  ffi (1.17.3-x86_64-linux-gnu) sha256=3746b01f677aae7b16dc1acb7cb3cc17b3e35bdae7676a3f568153fb0e2c887f\n+  ffi (1.17.3-x86_64-linux-musl) sha256=086b221c3a68320b7564066f46fed23449a44f7a1935f1fe5a245bd89d9aea56\n+  forwardable-extended (2.6.0) sha256=1bec948c469bbddfadeb3bd90eb8c85f6e627a412a3e852acfd7eaedbac3ec97\n+  google-protobuf (4.33.5) sha256=1b64fb774c101b23ac3f6923eca24be04fd971635d235c4cd4cfe0d752620da0\n+  google-protobuf (4.33.5-aarch64-linux-gnu) sha256=f70ca066e37a7ac60b4f34a836bb48ca3fc41a9371310052e484d8c9f925ff39\n+  google-protobuf (4.33.5-aarch64-linux-musl) sha256=d9ae90025f05db642e5603de5dbb2390cd1215bac7507fa575cc20b0db7e11a1\n+  google-protobuf (4.33.5-arm64-darwin) sha256=996d4e93c4232cc42f0facd821a92b4f4a926c3c9c1a768e7d768b33d9ef72f9\n+  google-protobuf (4.33.5-x86-linux-gnu) sha256=8d0d056743449221c723bffcf423ee8028a7028b4fca159db9692ec79fa4d185\n+  google-protobuf (4.33.5-x86-linux-musl) sha256=08de722ce05e619dcfa75a1a998615694e7a0c4254d4bb1557834d98d5090851\n+  google-protobuf (4.33.5-x86_64-darwin) sha256=173d1d6c9f0de93fd9ee25fde172d6fb6376099dca8844e19bc5782bbc7b93b0\n+  google-protobuf (4.33.5-x86_64-linux-gnu) sha256=a782adf86bfba207740b49d7bb9ccdc25c4fb8f800fe222af62bce951149338a\n+  google-protobuf (4.33.5-x86_64-linux-musl) sha256=d14feec9118f44cfdc3ee4a1d1baa4e6dd77fa418967ccf22ecbe76b8c1bacbf\n+  http_parser.rb (0.8.1) sha256=9ae8df145b39aa5398b2f90090d651c67bd8e2ebfe4507c966579f641e11097a\n+  i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5\n+  jekyll (4.4.1) sha256=4c1144d857a5b2b80d45b8cf5138289579a9f8136aadfa6dd684b31fe2bc18c1\n+  jekyll-compose (0.12.0) sha256=0478638a921c5795b1e5b1ffdc769f3c405682e239b1de0117bde60af4edc8db\n+  jekyll-redirect-from (0.16.0) sha256=6635cae569ef9b0f90ffb71ec014ba977177fafb44d32a2b0526288d4d9be6db\n+  jekyll-remote-theme (0.4.3) sha256=d3fde726484fb3df04de9e347baf75aaa3d5bfea771a330412e0c52608e54b40\n+  jekyll-sass-converter (3.0.0) sha256=e2e7674f186e906b9d99b8066e13f9b4d5cb9f806d36f7bc8cf2610053d8c902\n+  jekyll-watch (2.2.1) sha256=bc44ed43f5e0a552836245a54dbff3ea7421ecc2856707e8a1ee203a8387a7e1\n+  json (2.18.1) sha256=fe112755501b8d0466b5ada6cf50c8c3f41e897fa128ac5d263ec09eedc9f986\n+  kramdown (2.5.2) sha256=1ba542204c66b6f9111ff00dcc26075b95b220b07f2905d8261740c82f7f02fa\n+  kramdown-parser-gfm (1.1.0) sha256=fb39745516427d2988543bf01fc4cf0ab1149476382393e0e9c48592f6581729\n+  liquid (4.0.4) sha256=4fcfebb1a045e47918388dbb7a0925e7c3893e58d2bd6c3b3c73ec17a2d8fdb3\n+  listen (3.10.0) sha256=c6e182db62143aeccc2e1960033bebe7445309c7272061979bb098d03760c9d2\n+  logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203\n+  mercenary (0.4.0) sha256=b25a1e4a59adca88665e08e24acf0af30da5b5d859f7d8f38fba52c28f405138\n+  pathutil (0.16.2) sha256=e43b74365631cab4f6d5e4228f812927efc9cb2c71e62976edcb252ee948d589\n+  public_suffix (7.0.2) sha256=9114090c8e4e7135c1fd0e7acfea33afaab38101884320c65aaa0ffb8e26a857\n+  rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c\n+  rb-fsevent (0.11.2) sha256=43900b972e7301d6570f64b850a5aa67833ee7d87b458ee92805d56b7318aefe\n+  rb-inotify (0.11.1) sha256=a0a700441239b0ff18eb65e3866236cd78613d6b9f78fea1f9ac47a85e47be6e\n+  rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142\n+  rouge (4.7.0) sha256=dba5896715c0325c362e895460a6d350803dbf6427454f49a47500f3193ea739\n+  rubyzip (2.4.1) sha256=8577c88edc1fde8935eb91064c5cb1aef9ad5494b940cf19c775ee833e075615\n+  safe_yaml (1.0.5) sha256=a6ac2d64b7eb027bdeeca1851fe7e7af0d668e133e8a88066a0c6f7087d9f848\n+  sass-embedded (1.97.3) sha256=c4136da69ae3acfa7b0809f4ec10891125edf57df214a2d1ab570f721f96f7a6\n+  sass-embedded (1.97.3-aarch64-linux-android) sha256=623b2f52fed6e3696c6445406e4efaef57b54442cc35604bfffbb82aef7d5c45\n+  sass-embedded (1.97.3-aarch64-linux-gnu) sha256=81915bb19ce7e224eae534e75e828f4ab5acddcb17e54da0b5ef91d932462836\n+  sass-embedded (1.97.3-aarch64-linux-musl) sha256=508c92fa2f9e58f9072325e02f011bd22c7e428465c67fafaee570d0bc40563b\n+  sass-embedded (1.97.3-arm-linux-androideabi) sha256=e2ef33b187066e09374023e58e72cf3b5baabe6b77ecd74356fe9b4892a1c6e1\n+  sass-embedded (1.97.3-arm-linux-gnueabihf) sha256=ce443b57f3d7f03740267cf0f2cdff13e8055dd5938488967746f29f230222da\n+  sass-embedded (1.97.3-arm-linux-musleabihf) sha256=be3972424616f916ce1f4f41228266d57339e490dfd7ca0cea5588579564d4c0\n+  sass-embedded (1.97.3-arm64-darwin) sha256=8897d3503efe75c30584070a7104095545f5157665029aeb9bff3fa533a73861\n+  sass-embedded (1.97.3-riscv64-linux-android) sha256=201426b3e58611aa8cf34a7574df51905ec42fefb5a69982cc8497ac7fb26a6b\n+  sass-embedded (1.97.3-riscv64-linux-gnu) sha256=d7bac32f4de55c589a036da13ac4482bf5b7dfac980b4c0203d31a1bd9f07622\n+  sass-embedded (1.97.3-riscv64-linux-musl) sha256=621d981d700e2b8d0459b5ea696fff746dfa07d6b6bbc70cd982905214b07888\n+  sass-embedded (1.97.3-x86_64-darwin) sha256=578f167907ee2a4d355a5a40bcf35d2e3eb90c87008dcd9ce31a2c4a877697f6\n+  sass-embedded (1.97.3-x86_64-linux-android) sha256=8f5e179bee8610be432499f228ea4e53ab362b1db0da1ae3cd3e76b114712372\n+  sass-embedded (1.97.3-x86_64-linux-gnu) sha256=173a4d0dbe2fffdf7482bd3e82fb597dfc658c18d1e8fd746aa7d5077ed4e850\n+  sass-embedded (1.97.3-x86_64-linux-musl) sha256=fcc0dcb253ef174ea25283f8781ce9ce95a492663f4bdbb1d66bfae99267a9f7\n+  terminal-table (3.0.2) sha256=f951b6af5f3e00203fb290a669e0a85c5dd5b051b3b023392ccfd67ba5abae91\n+  unicode-display_width (2.6.0) sha256=12279874bba6d5e4d2728cef814b19197dbb10d7a7837a869bab65da943b7f5a\n+  webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131\n+\n BUNDLED WITH\n-   2.6.9\n+  4.0.7"},{"sha":"4d26dba2fb6348c2a97c9b85703f05e183261e78","filename":"docs/README.md","status":"modified","additions":29,"deletions":1,"changes":30,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/docs%2FREADME.md","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/docs%2FREADME.md","contents_url":"https://api.github.com/repos/stlab/stlab/contents/docs%2FREADME.md?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -20,6 +20,10 @@ cmake --preset=hyde-build-docs\n \n Login to [GitHub Packages registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic)\n \n+```pwsh\n+$CR_PAT=<personal access token>\n+```\n+\n ```bash\n echo $CR_PAT | docker login ghcr.io --password-stdin -u USERNAME \n ```\n@@ -35,10 +39,34 @@ docker run --platform linux/x86_64 --mount type=bind,source=\"$(pwd)/..\",target=/\n     ghcr.io/adobe/hyde:$HYDE_VERSION bash\n ```\n \n+```pwsh\n+$HYDE_VERSION=\"2.0.1\"\n+docker pull ghcr.io/adobe/hyde:$HYDE_VERSION\n+\n+docker run --platform linux/x86_64 --mount \"type=bind,source=$(Split-Path -Parent $PWD),target=/mnt/host\" --tty --interactive ghcr.io/adobe/hyde:$HYDE_VERSION bash\n+```\n+\n From the docker prompt\n \n ```\n-cd /mnt/host/libraries/docs\n+  sed -i 's/\\r$//' ./generate_docs.sh\n+  sed -i 's/\\r$//' ./about.sh\n+  sed -i 's/\\r$//' ./CMakePresets.json\n+\n+  \n+  cmake -S . -B build/hyde -G Ninja \\\n+  -DCMAKE_CXX_STANDARD=20 \\\n+  -DBUILD_TESTING=OFF \\\n+  -DSTLAB_MAIN_EXECUTOR=none \\\n+  -DSTLAB_NO_STD_COROUTINES=ON \\\n+  -DSTLAB_TASK_SYSTEM=portable \\\n+  -DSTLAB_THREAD_SYSTEM=pthread \\\n+  -Dstlab.coverage=OFF \\\n+  -DCPM_SOURCE_CACHE=.cache/cpm\n+```\n+\n+```\n+cd /mnt/host/stlab/docs\n ./generate_docs.sh\n ./about.sh\n ```"},{"sha":"9f1a5997ebb93669cb87dc18c02314a7b189cc19","filename":"docs/tools/docker-tools/README.md","status":"modified","additions":9,"deletions":1,"changes":10,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/docs%2Ftools%2Fdocker-tools%2FREADME.md","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/docs%2Ftools%2Fdocker-tools%2FREADME.md","contents_url":"https://api.github.com/repos/stlab/stlab/contents/docs%2Ftools%2Fdocker-tools%2FREADME.md?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -47,10 +47,18 @@ docker build --build-arg RUBY_VERSION=$RUBY_VERSION --file ./docs/tools/docker-t\n \n To run the docker image, execute the following.\n \n-```\n+macOS and Linux (Bash):\n+\n+```bash\n docker run --mount type=bind,source=\"$(pwd)\",target=/mnt/host --tty --interactive --publish 3000-3001:3000-3001 $VOLUME bash\n ```\n \n+Windows (PowerShell) — use `$PWD` and quote the whole `--mount` argument so the path is passed correctly:\n+\n+```powershell\n+docker run --mount \"type=bind,source=$PWD,target=/mnt/host\" --tty --interactive --publish 3000-3001:3000-3001 $VOLUME bash\n+```\n+\n ### Running the Docker image with local theme\n \n Edit Gemfile and _config.yml to use a local copy of the theme. See `[local-them]` in the files for details."},{"sha":"343b820733dd52912ed8a47c1670222a024bd2eb","filename":"include/stlab/concurrency/channel.hpp","status":"modified","additions":8,"deletions":4,"changes":12,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/include%2Fstlab%2Fconcurrency%2Fchannel.hpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/include%2Fstlab%2Fconcurrency%2Fchannel.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fconcurrency%2Fchannel.hpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -24,6 +24,7 @@\n #include <numeric>\n #include <optional>\n #include <tuple>\n+#include <type_traits>\n #include <utility>\n #include <variant>\n \n@@ -1384,6 +1385,9 @@ auto combine_bs_executor(B&& b, E&& e) -> detail::annotations {\n \n } // namespace detail\n \n+// !std::is_enum_v<std::remove_reference_t<F>>, int> = 0 is used to exclude enum types from\n+// operator& so built-in & is used (e.g. doctest assertType).\n+\n inline auto operator&(buffer_size bs, const executor& e) -> detail::annotations {\n     return detail::combine_bs_executor(bs, e);\n }\n@@ -1400,12 +1404,12 @@ inline auto operator&(executor&& e, buffer_size bs) -> detail::annotations {\n     return detail::combine_bs_executor(bs, std::move(e));\n }\n \n-template <typename F>\n+template <typename F, std::enable_if_t<!std::is_enum_v<std::remove_reference_t<F>>, int> = 0>\n auto operator&(buffer_size bs, F&& f) -> detail::annotated_process<F> {\n     return detail::annotated_process<F>(std::forward<F>(f), bs);\n }\n \n-template <typename F>\n+template <typename F, std::enable_if_t<!std::is_enum_v<std::remove_reference_t<F>>, int> = 0>\n auto operator&(F&& f, buffer_size bs) -> detail::annotated_process<F> {\n     return detail::annotated_process<F>(std::forward<F>(f), bs);\n }\n@@ -1420,12 +1424,12 @@ auto operator&(buffer_size bs, executor_task_pair<F>&& etp) -> detail::annotated\n     return detail::annotated_process<F>{std::move(etp), bs};\n }\n \n-template <typename F>\n+template <typename F, std::enable_if_t<!std::is_enum_v<std::remove_reference_t<F>>, int> = 0>\n auto operator&(detail::annotations&& a, F&& f) -> detail::annotated_process<F> {\n     return detail::annotated_process<F>{std::forward<F>(f), std::move(a)};\n }\n \n-template <typename F>\n+template <typename F, std::enable_if_t<!std::is_enum_v<std::remove_reference_t<F>>, int> = 0>\n auto operator&(F&& f, detail::annotations&& a) -> detail::annotated_process<F> {\n     return detail::annotated_process<F>{std::forward<F>(f), std::move(a)};\n }"},{"sha":"9c5e63fb0cb8a703041fbd838491630e667948b1","filename":"include/stlab/concurrency/future.hpp","status":"modified","additions":444,"deletions":65,"changes":509,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/include%2Fstlab%2Fconcurrency%2Ffuture.hpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/include%2Fstlab%2Fconcurrency%2Ffuture.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fconcurrency%2Ffuture.hpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -22,6 +22,7 @@\n #include <memory>\n #include <mutex>\n #include <optional>\n+#include <utility>\n #include <variant> // for std::monostate\n #include <vector>\n \n@@ -40,10 +41,39 @@\n \n /**************************************************************************************************/\n \n-/*\n-    packaged_task<Args...> is a function that holds a type erased promise\n-    invoking the packaged task will call with the moved promise\n-\n+/**\n+Asynchronous one-shot results: futures and packaged tasks.\n+\n+`future<T>` is the consumer side: it eventually holds a value or an exception.\n+`packaged_task<Args...>` is the producer side: an invocable that, when called,\n+runs a callable and completes its associated future with the result. You create\n+a task and its future together with `package<Sig>(executor, f)`. Return types\n+are auto-reduced: a `future<future<T>>` is flattened to `future<T>`, so\n+continuations and `package()` never expose nested futures.\n+\n+Lifecycle and cancellation: if a `future` is destroyed before the result is\n+produced, the other side can observe cancellation\n+(`future_error_codes::broken_promise`). If a `packaged_task` is destroyed\n+without being invoked, its future is completed with broken_promise. Thus tasks\n+are effectively canceled when their future or packaged_task is destroyed. A\n+packaged_task can call `canceled()` to see if the future was already released.\n+\n+Futures to copyable types are copyable; you can attach multiple continuations\n+via `then()`, `recover()`, `|`, or `^` from the same future. Futures to\n+non-copyable types are move-only and support a single continuation (use\n+`std::move(f).then(...)`). `then(f)` runs when the future has a value;\n+`recover(f)` runs when the future is ready (value or exception), so you can\n+handle errors. Continuations run on an executor (default or explicit). Use\n+`when_all` and `when_any` to combine futures; use `async(executor, f, args...)`\n+to run a function on an executor and get a future for its result. Obtain the\n+value with `get_ready()` (if the future is known to be ready) or `get_try()`\n+(returns immediately with value or empty); call `detach()` to drop the future\n+without cancelling the associated task.\n+\n+Coroutines: a function returning `future<T>` can use `co_return` and `co_await`.\n+Use `co_await std::move(f)` to await a future (resumption happens in the thread\n+that completes the future). Use `co_await resume_on(executor, std::move(f))` to\n+resume the current coroutine on a specific executor when the future completes.\n */\n \n /**************************************************************************************************/\n@@ -53,7 +83,7 @@ inline namespace STLAB_VERSION_NAMESPACE() {\n \n /**************************************************************************************************/\n \n-// invoke mapping void to std::monostate\n+/// Invokes `f` with `args` and returns its result, or `std::monostate{}` if the result is void.\n template <class F, class... Args>\n auto invoke_void_to_monostate_result(F&& f, Args&&... args) {\n     if constexpr (std::is_void_v<std::invoke_result_t<F, Args...>>) {\n@@ -64,20 +94,21 @@ auto invoke_void_to_monostate_result(F&& f, Args&&... args) {\n     }\n }\n \n-// REVISIT (sean-parent) : As a typedef, this generates file names in the hyde documentation that\n-// are too long for windows. Moving to a class for now, but I may also change how this is used and\n-// have a single future<> class with conditional members for easier documentation.\n+/// Maps `void` to `std::monostate` for uniform future result storage; other types unchanged.\n template <class T>\n struct void_to_monostate {\n     using type = std::conditional_t<std::is_void_v<T>, std::monostate, T>;\n };\n \n+/// Alias for `void_to_monostate<T>::type`.\n template <class T>\n using void_to_monostate_t = typename void_to_monostate<T>::type;\n \n+/// True if T is `std::monostate`.\n template <class T>\n inline constexpr bool is_monostate_v = std::is_same_v<T, std::monostate>;\n \n+/// Returns `o.has_value()` when T is `std::monostate`, otherwise `std::move(o)`.\n template <class T>\n auto optional_monostate_to_bool(std::optional<T>&& o) {\n     if constexpr (is_monostate_v<T>) {\n@@ -87,6 +118,7 @@ auto optional_monostate_to_bool(std::optional<T>&& o) {\n     }\n }\n \n+/// Converts `std::monostate` to void (no return); forwards other types unchanged.\n template <class T>\n auto monostate_to_void(T&& a) {\n     if constexpr (is_monostate_v<T>) {\n@@ -96,6 +128,8 @@ auto monostate_to_void(T&& a) {\n     }\n }\n \n+/// Converts `std::monostate` to `std::tuple{}`; wraps other types in `std::tuple` for uniform\n+/// application.\n template <class T>\n auto monostate_to_empty_tuple(T&& a) {\n     if constexpr (is_monostate_v<T>) {\n@@ -105,6 +139,7 @@ auto monostate_to_empty_tuple(T&& a) {\n     }\n }\n \n+/// Invokes `f` with `args` after removing `std::monostate` values (for void future results).\n template <class F, class... Args>\n auto invoke_remove_monostate_arguments(F&& f, Args&&... args) {\n     return std::apply(\n@@ -118,9 +153,10 @@ auto invoke_remove_monostate_arguments(F&& f, Args&&... args) {\n \n /**************************************************************************************************/\n \n-enum class future_error_codes : std::uint8_t { // names for futures errors\n-    broken_promise = 1,\n-    no_state\n+/// Error codes for future_error.\n+enum class future_error_codes : std::uint8_t {\n+    broken_promise = 1, ///< Promise was destroyed without setting a value or exception.\n+    no_state            ///< Operation required a valid shared state.\n };\n \n /**************************************************************************************************/\n@@ -158,14 +194,15 @@ using result_t = std::result_of_t<F(Args...)>;\n \n /**************************************************************************************************/\n \n-// future exception\n-\n+/// Exception thrown when a future-related contract is violated (e.g. `broken_promise`, `no_state`).\n class future_error : public std::logic_error {\n public:\n     explicit future_error(future_error_codes code) : logic_error(\"\"), _code(code) {}\n \n+    /// The error code that caused this exception.\n     [[nodiscard]] auto code() const noexcept -> const future_error_codes& { return _code; }\n \n+    /// Human-readable message for the stored error code.\n     [[nodiscard]] auto what() const noexcept -> const char* override {\n         return detail::Future_error_map(_code);\n     }\n@@ -231,6 +268,7 @@ auto unique_usage(const std::shared_ptr<T>& p) -> bool {\n template <class...>\n class packaged_task;\n \n+/// One-shot asynchronous result: holds a value or exception produced by a promise or packaged_task.\n template <class, class = void>\n class future;\n \n@@ -292,6 +330,8 @@ struct value_;\n \n /**************************************************************************************************/\n \n+/// Creates a packaged task and its future for the callable `f`, run on `executor`.\n+/// @return A pair (packaged_task, future); invoke the task to run `f` and complete the future.\n template <class Sig, class E, class F>\n auto package(E, F&&)\n     -> std::pair<detail::packaged_task_from_signature_t<Sig>, detail::reduced_result_t<Sig>>;\n@@ -311,7 +351,13 @@ struct shared_base;\n \n template <class... Args>\n struct shared_task {\n-    virtual ~shared_task() = default;\n+    void* _co_handle{nullptr}; // storing as void* for ABI stability.\n+\n+    virtual ~shared_task() {\n+#if STLAB_STD_COROUTINES()\n+        if (_co_handle) std::coroutine_handle<>::from_address(_co_handle).destroy();\n+#endif\n+    }\n \n     virtual void operator()(Args...) = 0;\n     virtual void set_exception(const std::exception_ptr&) noexcept = 0;\n@@ -383,6 +429,32 @@ struct shared_base<T, enable_if_copyable<void_to_monostate_t<T>>>\n             _then.emplace_back([](auto&&) {}, [_p = this->shared_from_this()]() noexcept {});\n     }\n \n+    template <class F>\n+    void _on_completion(F&& f) {\n+        task<void() noexcept> t(std::forward<F>(f));\n+        {\n+            std::unique_lock<std::mutex> lock(_mutex);\n+            if (!_ready) {\n+                _then.emplace_back(immediate_executor, std::move(t));\n+                return;\n+            }\n+        }\n+        std::move(t)();\n+    }\n+\n+    template <class E, class F>\n+    void _on_completion(E executor, F&& f) {\n+        task<void() noexcept> t(std::forward<F>(f));\n+        {\n+            std::unique_lock<std::mutex> lock(_mutex);\n+            if (!_ready) {\n+                _then.emplace_back(std::move(executor), std::move(t));\n+                return;\n+            }\n+        }\n+        executor(std::move(t));\n+    }\n+\n     void _set_exception(const std::exception_ptr& error) noexcept {\n         _exception = error;\n         then_t then;\n@@ -487,7 +559,10 @@ struct shared_base<T, enable_if_not_copyable<void_to_monostate_t<T>>>\n         {\n             std::unique_lock<std::mutex> lock(_mutex);\n             ready = _ready;\n-            if (!ready) _then = {std::move(executor), std::move(pro)};\n+            if (!ready) {\n+                assert(!_then.second && \"recover: _then slot already occupied\");\n+                _then = {std::move(executor), std::move(pro)};\n+            }\n         }\n         if (ready) executor(std::move(pro)); // cannot reference this after here\n \n@@ -515,6 +590,34 @@ struct shared_base<T, enable_if_not_copyable<void_to_monostate_t<T>>>\n         if (!_ready) _then = then_t([](auto&&) {}, [_p = this->shared_from_this()]() noexcept {});\n     }\n \n+    template <class F>\n+    void _on_completion(F&& f) {\n+        task<void() noexcept> t(std::forward<F>(f));\n+        {\n+            std::unique_lock<std::mutex> lock(_mutex);\n+            if (!_ready) {\n+                assert(!_then.second && \"on_completion: _then slot already occupied\");\n+                _then = {immediate_executor, std::move(t)};\n+                return;\n+            }\n+        }\n+        std::move(t)();\n+    }\n+\n+    template <class E, class F>\n+    void _on_completion(E executor, F&& f) {\n+        task<void() noexcept> t(std::forward<F>(f));\n+        {\n+            std::unique_lock<std::mutex> lock(_mutex);\n+            if (!_ready) {\n+                assert(!_then.second && \"on_completion: _then slot already occupied\");\n+                _then = {std::move(executor), std::move(t)};\n+                return;\n+            }\n+        }\n+        executor(std::move(t));\n+    }\n+\n     void _set_exception(const std::exception_ptr& error) noexcept {\n         _exception = error;\n         then_t then;\n@@ -561,10 +664,8 @@ struct shared_base<T, enable_if_not_copyable<void_to_monostate_t<T>>>\n \n /**************************************************************************************************/\n \n-// class promise\n-\n-/**************************************************************************************************/\n-\n+/// Producer side of a one-shot result; setting a value or exception completes the associated\n+/// future.\n template <class R>\n class promise {\n     using type = void_to_monostate_t<R>;\n@@ -586,25 +687,31 @@ class promise {\n     promise(const promise&) = delete;\n     auto operator=(const promise&) -> promise& = delete;\n \n+    /// Completes the future with `value`. No effect if the future was already satisfied or\n+    /// canceled.\n     void set_value(type&& value) && noexcept {\n         if (auto p = _p.lock()) {\n             _p.reset();\n             p->set_value(std::move(value));\n         }\n     }\n \n+    /// Completes the future (void result). No effect if already satisfied or canceled.\n     auto set_value() && noexcept { set_value(std::monostate{}); }\n \n+    /// Completes the future with `error`. No effect if already satisfied or canceled.\n     void set_exception(const std::exception_ptr& error) && noexcept {\n         if (auto p = _p.lock()) {\n             _p.reset();\n             p->_set_exception(error);\n         }\n     }\n \n+    /// True if the associated future was released (e.g. consumer no longer interested).\n     [[nodiscard]] auto canceled() const -> bool { return _p.expired(); }\n };\n \n+/// Deduction guide for promise from `shared_ptr<shared_base<R>>`.\n template <class R>\n promise(std::shared_ptr<shared_base<R>>) -> promise<R>;\n \n@@ -632,12 +739,18 @@ auto make_shared_state(executor_t s, F&& f) -> std::shared_ptr<shared<F, Sig>> {\n     return std::make_shared<shared<F, Sig>>(std::move(s), std::forward<F>(f));\n }\n \n+template <class... Args>\n+[[nodiscard]] auto weak_state(const packaged_task<Args...>& p)\n+    -> std::weak_ptr<shared_task<Args...>>;\n+\n /**************************************************************************************************/\n \n } // namespace detail\n \n /**************************************************************************************************/\n \n+/// Invocable that completes a future when called with arguments of type `Args...`; created by\n+/// `package()`.\n template <class... Args>\n class packaged_task {\n     using ptr_t = std::weak_ptr<detail::shared_task<Args...>>;\n@@ -652,6 +765,10 @@ class packaged_task {\n     template <class T, class E>\n     friend auto future_with_broken_promise(E) -> detail::reduced_t<T>;\n \n+    template <class... Brgs>\n+    friend auto detail::weak_state(const packaged_task<Brgs...>& p)\n+        -> std::weak_ptr<detail::shared_task<Brgs...>>;\n+\n public:\n     packaged_task() = default;\n     ~packaged_task() {\n@@ -667,26 +784,45 @@ class packaged_task {\n     packaged_task(packaged_task&&) noexcept = default;\n     auto operator=(packaged_task&& x) noexcept -> packaged_task& = default;\n \n+    /// Invokes the packaged callable with `args` and completes the associated future.\n+    /// Clears _co_handle before reset so ~shared_task() will not destroy the coroutine; the\n+    /// coroutine is destroyed in final_awaiter::await_suspend (coroutine is suspended there).\n     template <class... A>\n     void operator()(A&&... args) noexcept {\n         if (auto p = _p.lock()) {\n+            p->_co_handle = nullptr;\n             _p.reset();\n             (*p)(std::forward<A>(args)...);\n         }\n     }\n \n+    /// True if the associated future was released.\n     [[nodiscard]] auto canceled() const -> bool { return _p.expired(); }\n \n+    /// Completes the future with `error` without invoking the callable.\n     void set_exception(const std::exception_ptr& error) noexcept {\n         if (auto p = _p.lock()) {\n+            p->_co_handle = nullptr;\n             _p.reset();\n             p->set_exception(error);\n         }\n     }\n };\n \n+namespace detail {\n+\n+template <class... Args>\n+[[nodiscard]] auto weak_state(const packaged_task<Args...>& p)\n+    -> std::weak_ptr<detail::shared_task<Args...>> {\n+    return p._p;\n+}\n+\n+} // namespace detail\n+\n /**************************************************************************************************/\n \n+/// Consumer side of a one-shot result (copyable T). Use `get_ready()` or `get_try()` to obtain the\n+/// value.\n template <class T>\n class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n     using type = void_to_monostate_t<T>;\n@@ -708,6 +844,7 @@ class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n     friend struct detail::value_;\n \n public:\n+    /// The type of the value this future holds.\n     using result_type = T;\n \n     future() = default;\n@@ -716,14 +853,21 @@ class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n     auto operator=(const future&) -> future& = default;\n     auto operator=(future&&) noexcept -> future& = default;\n \n+    /// Exchanges the shared state with `x`.\n     void swap(future& x) noexcept { std::swap(_p, x._p); }\n \n+    /// Exchanges the shared states of `x` and `y`.\n     inline friend void swap(future& x, future& y) noexcept { x.swap(y); }\n+    /// True if `x` and `y` share the same shared state.\n     inline friend auto operator==(const future& x, const future& y) -> bool { return x._p == y._p; }\n+    /// True if `x` and `y` do not share the same shared state.\n     inline friend auto operator!=(const future& x, const future& y) -> bool { return !(x == y); }\n \n+    /// True if this future has an associated shared state.\n     [[nodiscard]] auto valid() const -> bool { return static_cast<bool>(_p); }\n \n+    /// Returns a future that completes with the result of `f` applied to this future's value\n+    /// (default executor).\n     template <class F>\n     auto then(F&& f) const& {\n         return recover([_f = std::forward<F>(f)](future<result_type>&& p) mutable {\n@@ -733,11 +877,14 @@ class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n         });\n     }\n \n+    /// Pipe operator: same as `then(f)`.\n     template <class F>\n     auto operator|(F&& f) const& {\n         return then(std::forward<F>(f));\n     }\n \n+    /// Returns a future that completes with the result of `f` on `executor` applied to this\n+    /// future's value.\n     template <class E, class F>\n     auto then(E&& executor, F&& f) const& {\n         return recover(\n@@ -748,11 +895,14 @@ class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n             });\n     }\n \n+    /// Pipe operator: same as `then(etp.executor(), etp.task())`.\n     template <class F>\n     auto operator|(executor_task_pair<F> etp) const& {\n         return then(std::move(etp)._executor, std::move(etp)._f);\n     }\n \n+    /// Returns a future that completes with the result of `f` applied to this future's value\n+    /// (default executor). Rvalue overload; consumes `*this`.\n     template <class F>\n     auto then(F&& f) && {\n         return std::move(*this).recover([_f = std::forward<F>(f)](future<result_type>&& p) mutable {\n@@ -762,11 +912,14 @@ class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n         });\n     }\n \n+    /// Pipe operator: same as `then(f)`. Rvalue overload; consumes `*this`.\n     template <class F>\n     auto operator|(F&& f) && {\n         return std::move(*this).then(std::forward<F>(f));\n     }\n \n+    /// Returns a future that completes with the result of `f` on `executor` applied to this\n+    /// future's value. Rvalue overload; consumes `*this`.\n     template <class E, class F>\n     auto then(E&& executor, F&& f) && {\n         return std::move(*this).recover(\n@@ -777,79 +930,118 @@ class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n             });\n     }\n \n+    /// Pipe operator: same as `then(etp.executor(), etp.task())`. Rvalue overload; consumes\n+    /// `*this`.\n     template <class F>\n     auto operator|(executor_task_pair<F> etp) && {\n         return std::move(*this).then(std::move(etp)._executor, std::move(etp)._f);\n     }\n \n+    /// Returns a future that completes with the result of `f` given this future (possibly in error\n+    /// state); default executor.\n     template <class F>\n     auto recover(F&& f) const& {\n         return _p->recover(copy(*this), std::forward<F>(f));\n     }\n \n+    /// Pipe operator: same as `recover(f)`.\n     template <class F>\n     auto operator^(F&& f) const& {\n         return recover(std::forward<F>(f));\n     }\n \n+    /// Returns a future that completes with the result of `f` given this future, run on `executor`.\n     template <class E, class F>\n     auto recover(E&& executor, F&& f) const& {\n         return _p->recover(copy(*this), std::forward<E>(executor), std::forward<F>(f));\n     }\n \n+    /// Pipe operator: same as `recover(etp.executor(), etp.task())`.\n     template <class F>\n     auto operator^(executor_task_pair<F> etp) const& {\n         return recover(std::move(etp)._executor, std::move(etp)._f);\n     }\n \n+    /// Returns a future that completes with the result of `f` given this future (possibly in error\n+    /// state); default executor. Rvalue overload; consumes `*this`.\n     template <class F>\n     auto recover(F&& f) && {\n         auto& self = *_p.get();\n         return self.recover(std::move(*this), std::forward<F>(f));\n     }\n \n+    /// Pipe operator: same as `recover(f)`. Rvalue overload; consumes `*this`.\n     template <class F>\n     auto operator^(F&& f) && {\n         return std::move(*this).recover(std::forward<F>(f));\n     }\n \n+    /// Returns a future that completes with the result of `f` given this future, run on `executor`.\n+    /// Rvalue overload; consumes `*this`.\n     template <class E, class F>\n     auto recover(E&& executor, F&& f) && {\n         auto& self = *_p.get();\n         return self.recover(std::move(*this), std::forward<E>(executor), std::forward<F>(f));\n     }\n \n+    /// Pipe operator: same as `recover(etp.executor(), etp.task())`. Rvalue overload; consumes\n+    /// `*this`.\n     template <class F>\n     auto operator^(executor_task_pair<F> etp) && {\n         return std::move(*this).recover(std::move(etp)._executor, std::move(etp)._f);\n     }\n \n+    /// Drops this future without requiring a value; the promise may see `broken_promise`.\n     void detach() const { _p->_detach(); }\n \n+    /// When this future completes (value or exception), invokes `f` with it and does not propagate\n+    /// further.\n     template <class F>\n     void detach(F&& f) && {\n         auto& self = *_p.get();\n         self._detach(std::move(*this), std::forward<F>(f));\n     }\n \n+    /// Invokes `f` immediately when this future completes (value or exception).\n+    /// Requires `f` is noexcept.\n+    template <class F>\n+    void on_completion(F&& f) {\n+        _p->_on_completion(std::forward<F>(f));\n+    }\n+\n+    /// Invokes `f` when this future completes (value or exception), on `executor`.\n+    /// Requires `f` is noexcept.\n+    template <class E, class F>\n+    void on_completion(E&& executor, F&& f) {\n+        _p->_on_completion(std::forward<E>(executor), std::forward<F>(f));\n+    }\n+\n+    /// Releases the shared state; `valid()` becomes false.\n     void reset() noexcept { _p.reset(); }\n \n+    /// True if the result or exception is available.\n     [[nodiscard]] auto is_ready() const& -> bool { return _p && _p->is_ready(); }\n \n+    /// Returns the value if ready, or `std::nullopt` / false (for void) if not; rethrows if\n+    /// completed with exception.\n     [[nodiscard]] auto get_try() const& { return optional_monostate_to_bool(_p->get_try()); }\n \n+    /// Same as `get_try()` but may move the value when this is the only reference.\n     auto get_try() && { return optional_monostate_to_bool(_p->get_try_r(unique_usage(_p))); }\n \n+    /// Returns the value. @pre `is_ready()`. Rethrows the stored exception if the future failed.\n     [[nodiscard]] auto get_ready() const& { return monostate_to_void(_p->get_ready()); }\n \n+    /// Same as `get_ready()` but may move the value when this is the only reference.\n     auto get_ready() && { return monostate_to_void(_p->get_ready_r(unique_usage(_p))); }\n \n     [[deprecated(\"Use exception() instead\")]] [[nodiscard]] auto error()\n         const& -> std::optional<std::exception_ptr> {\n         return _p->_exception ? std::optional<std::exception_ptr>{_p->_exception} : std::nullopt;\n     }\n \n-    // Precondition: is_ready()\n+    /// Returns the stored exception, or a null `exception_ptr` if the future completed with a\n+    /// value. @pre `is_ready()`\n     [[nodiscard]] auto exception() const& -> std::exception_ptr {\n         assert(is_ready());\n         return _p->_exception;\n@@ -858,6 +1050,8 @@ class STLAB_NODISCARD() future<T, enable_if_copyable<void_to_monostate_t<T>>> {\n \n /**************************************************************************************************/\n \n+/// Consumer side of a one-shot result (non-copyable T). Use `get_ready()` or `get_try()`;\n+/// `then`/`recover` only on rvalue.\n template <class T>\n class STLAB_NODISCARD() future<T, enable_if_not_copyable<void_to_monostate_t<T>>> {\n     using ptr_t = std::shared_ptr<detail::shared_base<T>>;\n@@ -878,6 +1072,7 @@ class STLAB_NODISCARD() future<T, enable_if_not_copyable<void_to_monostate_t<T>>\n     friend struct detail::value_;\n \n public:\n+    /// The type of the value this future holds.\n     using result_type = T;\n \n     future() = default;\n@@ -886,26 +1081,36 @@ class STLAB_NODISCARD() future<T, enable_if_not_copyable<void_to_monostate_t<T>>\n     auto operator=(const future&) -> future& = delete;\n     auto operator=(future&&) noexcept -> future& = default;\n \n+    /// Exchanges the shared state with `x`.\n     void swap(future& x) noexcept { std::swap(_p, x._p); }\n \n+    /// Exchanges the shared states of `x` and `y`.\n     inline friend void swap(future& x, future& y) noexcept { x.swap(y); }\n+    /// True if `x` and `y` share the same shared state.\n     inline friend auto operator==(const future& x, const future& y) -> bool { return x._p == y._p; }\n+    /// True if `x` and `y` do not share the same shared state.\n     inline friend auto operator!=(const future& x, const future& y) -> bool { return !(x == y); }\n \n+    /// True if this future has an associated shared state.\n     [[nodiscard]] auto valid() const -> bool { return static_cast<bool>(_p); }\n \n+    /// Returns a future that completes with the result of `f` applied to this future's value\n+    /// (rvalue only).\n     template <class F>\n     auto then(F&& f) && {\n         return std::move(*this).recover([_f = std::forward<F>(f)](future<result_type>&& p) mutable {\n             return std::move(_f)(*std::move(p).get_try());\n         });\n     }\n \n+    /// Pipe operator: same as `then(f)`.\n     template <class F>\n     auto operator|(F&& f) && {\n         return std::move(*this).then(std::forward<F>(f));\n     }\n \n+    /// Returns a future that completes with the result of `f` on `executor` applied to this\n+    /// future's value.\n     template <class E, class F>\n     auto then(E&& executor, F&& f) && {\n         return std::move(*this).recover(std::forward<E>(executor),\n@@ -914,59 +1119,92 @@ class STLAB_NODISCARD() future<T, enable_if_not_copyable<void_to_monostate_t<T>>\n                                         });\n     }\n \n+    /// Pipe operator: same as `then(etp.executor(), etp.task())`.\n     template <class F>\n     auto operator|(executor_task_pair<F> etp) && {\n         return std::move(*this).then(std::move(etp)._executor, std::move(etp)._f);\n     }\n \n+    /// Returns a future that completes with the result of `f` given this future (possibly in error\n+    /// state); default executor.\n     template <class F>\n     auto recover(F&& f) && {\n         auto& self = *_p.get();\n         return self.recover(std::move(*this), std::forward<F>(f));\n     }\n \n+    /// Pipe operator: same as `recover(f)`.\n     template <class F>\n     auto operator^(F&& f) && {\n         return std::move(*this).recover(std::forward<F>(f));\n     }\n \n+    /// Returns a future that completes with the result of `f` given this future, run on `executor`.\n     template <class E, class F>\n     auto recover(E&& executor, F&& f) && {\n         auto& self = *_p.get();\n         return self.recover(std::move(*this), std::forward<E>(executor), std::forward<F>(f));\n     }\n \n+    /// Pipe operator: same as `recover(etp.executor(), etp.task())`.\n     template <class F>\n     auto operator^(executor_task_pair<F> etp) && {\n         return std::move(*this).recover(std::move(etp)._executor, std::move(etp)._f);\n     }\n \n+    /// Drops this future without requiring a value; the promise may see `broken_promise`.\n     void detach() const { _p->_detach(); }\n \n+    /// When this future completes (value or exception), invokes `f` with it and does not propagate\n+    /// further.\n     template <class F>\n     void detach(F&& f) && {\n         auto& self = *_p.get();\n         self._detach(std::move(*this), std::forward<F>(f));\n     }\n \n+    /// Invokes `f` immediately when this future completes (value or exception).\n+    /// This consumes the continuation slot, the behavior of attaching a\n+    /// continuation after on_completion() is undefined.\n+    template <class F>\n+    void on_completion(F&& f) {\n+        _p->_on_completion(std::forward<F>(f));\n+    }\n+\n+    /// Invokes `f` when this future completes (value or exception), on `executor`.\n+    /// This consumes the continuation slot, the behavior of attaching a\n+    /// continuation after on_completion() is undefined.\n+    template <class E, class F>\n+    void on_completion(E&& executor, F&& f) {\n+        _p->_on_completion(std::forward<E>(executor), std::forward<F>(f));\n+    }\n+\n+    /// Releases the shared state; `valid()` becomes false.\n     void reset() noexcept { _p.reset(); }\n \n+    /// True if the result or exception is available.\n     [[nodiscard]] auto is_ready() const& -> bool { return _p && _p->is_ready(); }\n \n+    /// Returns the value if ready, or `std::nullopt` / false (for void) if not; rethrows if\n+    /// completed with exception.\n     [[nodiscard]] auto get_try() const& { return optional_monostate_to_bool(_p->get_try()); }\n \n+    /// Same as `get_try()` but may move the value when this is the only reference.\n     auto get_try() && { return optional_monostate_to_bool(_p->get_try_r(unique_usage(_p))); }\n \n+    /// Returns the value. @pre `is_ready()`. Rethrows the stored exception if the future failed.\n     [[nodiscard]] auto get_ready() const& { return monostate_to_void(_p->get_ready()); }\n \n+    /// Same as `get_ready()` but may move the value when this is the only reference.\n     auto get_ready() && { return monostate_to_void(_p->get_ready_r(unique_usage(_p))); }\n \n     [[deprecated(\"Use exception() instead\")]] [[nodiscard]] auto error()\n         const& -> std::optional<std::exception_ptr> {\n         return _p->_exception ? std::optional<std::exception_ptr>{_p->_exception} : std::nullopt;\n     }\n \n-    // Precondition: is_ready()\n+    /// Returns the stored exception, or a null `exception_ptr` if the future completed with a\n+    /// value. @pre `is_ready()`\n     [[nodiscard]] auto exception() const& -> std::exception_ptr {\n         assert(is_ready());\n         return _p->_exception;\n@@ -1030,6 +1268,8 @@ auto package(E executor, F&& f)\n     }\n }\n \n+/// Returns a future of type T that is already ready with a `broken_promise` error (e.g. for\n+/// canceled work).\n template <class T, class E>\n auto future_with_broken_promise(E executor) -> detail::reduced_t<T> {\n     auto p = std::make_shared<detail::shared_base<typename detail::reduced_t<T>::result_type>>(\n@@ -1246,6 +1486,8 @@ void attach_when_args(E&& executor, std::shared_ptr<P>& p, Ts... a) {\n \n /**************************************************************************************************/\n \n+/// Returns a future that completes when all `args` are ready; `f` is invoked with their values (or\n+/// first exception).\n template <class E, class F, class... Ts>\n auto when_all(const E& executor, F f, future<Ts>... args) {\n     using vt_t = voidless_tuple<Ts...>;\n@@ -1264,6 +1506,7 @@ auto when_all(const E& executor, F f, future<Ts>... args) {\n \n /**************************************************************************************************/\n \n+/// Helper to implement when_any for result type T.\n template <class T>\n struct make_when_any {\n     template <class E, class F, class... Ts>\n@@ -1284,6 +1527,7 @@ struct make_when_any {\n \n /**************************************************************************************************/\n \n+/// Helper to implement when_any for void results.\n template <>\n struct make_when_any<void> {\n     template <class E, class F, class... Ts>\n@@ -1304,6 +1548,8 @@ struct make_when_any<void> {\n \n /**************************************************************************************************/\n \n+/// Returns a future that completes when any of the given futures is ready; `f` receives the value\n+/// and the index of the future that completed first (as a second argument of type `std::size_t`).\n template <class E, class F, class T, class... Ts>\n auto when_any(E&& executor, F&& f, future<T>&& arg, future<Ts>&&... args) {\n     return make_when_any<T>::make(std::forward<E>(executor), std::forward<F>(f), std::move(arg),\n@@ -1566,10 +1812,9 @@ struct create_range_of_futures<R, T, C, enable_if_not_copyable<T>> {\n \n /**************************************************************************************************/\n \n-template <class E, // models task executor\n-          class F, // models functional object\n-          class I> // models ForwardIterator that reference to a range of futures of the same\n-                   // type\n+/// Returns a future that completes when all futures in `[range.first, range.second)` are ready; `f`\n+/// receives their values.\n+template <class E, class F, class I>\n auto when_all(const E& executor, F f, std::pair<I, I> range) {\n     using param_t = typename std::iterator_traits<I>::value_type::result_type;\n     using result_t = typename detail::result_of_when_all_t<F, param_t>::result_type;\n@@ -1591,10 +1836,10 @@ auto when_all(const E& executor, F f, std::pair<I, I> range) {\n \n /**************************************************************************************************/\n \n-template <class E, // models task executor\n-          class F, // models functional object\n-          class I> // models ForwardIterator that reference to a range of futures of the same\n-                   // type\n+/// Returns a future that completes when any future in `[range.first, range.second)` is ready; `f`\n+/// receives the result and the index of the future that completed first (as a second argument of\n+/// type `std::size_t`).\n+template <class E, class F, class I>\n auto when_any(const E& executor, F&& f, std::pair<I, I> range) {\n     using param_t = typename std::iterator_traits<I>::value_type::result_type;\n     using result_t = std::decay_t<typename detail::result_of_when_any_t<F, param_t>::result_type>;\n@@ -1612,6 +1857,7 @@ auto when_any(const E& executor, F&& f, std::pair<I, I> range) {\n \n /**************************************************************************************************/\n \n+/// Runs `f` with `args` on `executor` and returns a future for the result.\n template <class E, class F, class... Args>\n auto async(const E& executor, F&& f, Args&&... args)\n     -> detail::reduced_t<detail::result_t<std::decay_t<F>, std::decay_t<Args>...>> {\n@@ -1701,72 +1947,205 @@ void shared_base<T, enable_if_not_copyable<void_to_monostate_t<T>>>::set_value(A\n \n #if STLAB_STD_COROUTINES()\n \n+/**************************************************************************************************/\n+\n+namespace stlab {\n+inline namespace STLAB_VERSION_NAMESPACE() {\n+namespace detail {\n+\n+template <class... Args>\n+struct final_awaiter {\n+    bool await_ready() noexcept { return false; }\n+    void await_resume() noexcept {}\n+    void await_suspend(std::coroutine_handle<> h) noexcept {\n+        h.destroy();\n+    }\n+};\n+\n+/// Awaitable that suspends and resumes the coroutine on the given executor when the future\n+/// completes.\n+template <class R>\n+struct resume_on_awaiter {\n+    executor_t _executor;\n+    future<R> _input;\n+\n+    bool await_ready() const noexcept { return false; }\n+\n+    auto await_resume() { return std::move(_input).get_ready(); }\n+\n+    void await_suspend(std::coroutine_handle<> ch) {\n+        _input.on_completion(std::move(_executor), [ch]() noexcept { ch.resume(); });\n+    }\n+};\n+\n+/// resume_on_awaiter with weak_ptr check for use from coroutines (via await_transform).\n+/// When AllowSkipSuspend is true (plain co_await), await_ready returns is_ready() to avoid\n+/// unnecessary suspension. When false (resume_on), always suspend so we resume on the given\n+/// executor.\n+template <class R, class WeakPtr, bool AllowSkipSuspend>\n+struct resume_on_awaiter_with_control {\n+    executor_t _executor;\n+    future<R> _input;\n+    WeakPtr _weak;\n+\n+    bool await_ready() const noexcept {\n+        if constexpr (AllowSkipSuspend) {\n+            return _input.is_ready();\n+        } else {\n+            return false;\n+        }\n+    }\n+    auto await_resume() { return std::move(_input).get_ready(); }\n+    void await_suspend(std::coroutine_handle<> ch) {\n+        assert(_weak.lock() && \"await_suspend: weak_state is gone\");\n+        _weak.lock()->_co_handle = ch.address();\n+        _input.on_completion(std::move(_executor), [weak = std::move(_weak)]() noexcept {\n+            if (auto state = weak.lock())\n+                std::coroutine_handle<>::from_address(state->_co_handle).resume();\n+        });\n+    }\n+};\n+\n+} // namespace detail\n+\n+/// When the future completes, the current coroutine is resumed on `executor`; result/exception\n+/// semantics are the same as `co_await std::move(f)`.\n+template <class E, class R>\n+auto resume_on(E&& executor, future<R>&& f) -> detail::resume_on_awaiter<R> {\n+    return detail::resume_on_awaiter<R>{executor_t(std::forward<E>(executor)), std::move(f)};\n+}\n+\n+} // namespace STLAB_VERSION_NAMESPACE()\n+} // namespace stlab\n+\n+/**************************************************************************************************/\n+// Coroutine ownership and destruction rules (implementation notes):\n+//\n+// We destroy the coroutine only while it is suspended, in final_awaiter::await_suspend (h.destroy()).\n+// Before invoking the packaged_task (in return_value/return_void/unhandled_exception), we clear\n+// _co_handle in the shared state so ~shared_task() will not try to destroy the handle when the\n+// future is later destroyed. When suspended on a future we store the handle in _co_handle so we\n+// can resume via weak_state. For non-future awaitables we clear _co_handle before suspending\n+// (give up ownership for that suspend). initial_suspend is suspend_never so we never own before\n+// the first suspend.\n+/**************************************************************************************************/\n+\n template <class T, class... Args>\n struct std::coroutine_traits<stlab::future<T>, Args...> {\n     struct promise_type {\n-        std::pair<stlab::packaged_task<T>, stlab::future<T>> _promise;\n-\n-        promise_type() {\n-            _promise = stlab::package<T(T)>(stlab::immediate_executor, std::identity{});\n+        stlab::packaged_task<std::variant<T, std::exception_ptr>> _promise;\n+\n+        stlab::future<T> get_return_object() {\n+            auto [pro, fut] = stlab::package<T(std::variant<T, std::exception_ptr>)>(\n+                stlab::immediate_executor,\n+                [](std::variant<T, std::exception_ptr>&& v) mutable -> T {\n+                    // Use index (1 = exception) to avoid ambiguity when T is std::exception_ptr.\n+                    if (auto* ep = std::get_if<1>(&v)) {\n+                        std::rethrow_exception(*ep);\n+                    }\n+                    return std::get<0>(std::move(v));\n+                });\n+            _promise = std::move(pro);\n+            return std::move(fut);\n         }\n \n-        stlab::future<T> get_return_object() { return std::move(_promise.second); }\n-\n-        auto initial_suspend() const { return std::suspend_never{}; }\n+        auto initial_suspend() const noexcept { return std::suspend_never{}; }\n \n-        auto final_suspend() const noexcept { return std::suspend_never{}; }\n+        auto final_suspend() noexcept {\n+            assert(_promise.canceled() && \"final_suspend: promise not fulfilled\");\n+            return stlab::detail::final_awaiter<std::variant<T, std::exception_ptr>>{};\n+        }\n \n         template <class U>\n         void return_value(U&& val) {\n-            _promise.first(std::forward<U>(val));\n+            _promise(\n+                std::variant<T, std::exception_ptr>{std::in_place_type<T>, std::forward<U>(val)});\n+        }\n+\n+        void unhandled_exception() {\n+            _promise(std::variant<T, std::exception_ptr>{std::in_place_type<std::exception_ptr>,\n+                                                         std::current_exception()});\n         }\n \n-        void unhandled_exception() { _promise.first.set_exception(std::current_exception()); }\n+        template <class R>\n+        auto await_transform(stlab::future<R>&& f) {\n+            return stlab::detail::resume_on_awaiter_with_control<\n+                R, decltype(stlab::detail::weak_state(_promise)), true>{\n+                stlab::immediate_executor, std::move(f), stlab::detail::weak_state(_promise)};\n+        }\n+        template <class R>\n+        auto await_transform(stlab::detail::resume_on_awaiter<R> a) {\n+            return stlab::detail::resume_on_awaiter_with_control<\n+                R, decltype(stlab::detail::weak_state(_promise)), false>{\n+                std::move(a._executor), std::move(a._input), stlab::detail::weak_state(_promise)};\n+        }\n+        template <class U>\n+        U&& await_transform(U&& u) {\n+            if (auto state = stlab::detail::weak_state(_promise).lock())\n+                state->_co_handle = nullptr;\n+            return std::forward<U>(u);\n+        }\n     };\n };\n \n template <class... Args>\n struct std::coroutine_traits<stlab::future<void>, Args...> {\n     struct promise_type {\n-        std::pair<stlab::packaged_task<>, stlab::future<void>> _promise;\n-\n-        inline promise_type() {\n-            _promise = stlab::package<void()>(stlab::immediate_executor, []() {});\n+        stlab::packaged_task<std::exception_ptr> _promise;\n+\n+        stlab::future<void> get_return_object() {\n+            auto [pro, fut] = stlab::package<void(std::exception_ptr)>(\n+                stlab::immediate_executor, [](const std::exception_ptr& ep) mutable {\n+                    if (ep) std::rethrow_exception(ep);\n+                });\n+            _promise = std::move(pro);\n+            return std::move(fut);\n         }\n \n-        inline stlab::future<void> get_return_object() { return _promise.second; }\n+        auto initial_suspend() const noexcept { return std::suspend_never{}; }\n \n-        inline auto initial_suspend() const { return std::suspend_never{}; }\n+        auto final_suspend() noexcept {\n+            assert(_promise.canceled() && \"final_suspend: promise not fulfilled\");\n+            return stlab::detail::final_awaiter<std::exception_ptr>{};\n+        }\n \n-        inline auto final_suspend() const noexcept { return std::suspend_never{}; }\n+        void return_void() { _promise(std::exception_ptr{}); }\n \n-        inline void return_void() { _promise.first(); }\n+        void unhandled_exception() { _promise(std::current_exception()); }\n \n-        inline void unhandled_exception() {\n-            _promise.first.set_exception(std::current_exception());\n+        template <class R>\n+        auto await_transform(stlab::future<R>&& f) {\n+            return stlab::detail::resume_on_awaiter_with_control<\n+                R, decltype(stlab::detail::weak_state(_promise)), true>{\n+                stlab::immediate_executor, std::move(f), stlab::detail::weak_state(_promise)};\n+        }\n+        template <class R>\n+        auto await_transform(stlab::detail::resume_on_awaiter<R> a) {\n+            return stlab::detail::resume_on_awaiter_with_control<\n+                R, decltype(stlab::detail::weak_state(_promise)), false>{\n+                std::move(a._executor), std::move(a._input), stlab::detail::weak_state(_promise)};\n+        }\n+        template <class U>\n+        U&& await_transform(U&& u) {\n+            if (auto state = stlab::detail::weak_state(_promise).lock())\n+                state->_co_handle = nullptr;\n+            return std::forward<U>(u);\n         }\n     };\n };\n \n-template <class R>\n-auto operator co_await(stlab::future<R> f) {\n-    struct Awaiter {\n-        stlab::future<R> _input;\n-\n-        bool await_ready() { return _input.is_ready(); }\n-\n-        auto await_resume() { return std::move(_input).get_ready(); }\n+/**************************************************************************************************/\n \n-        void await_suspend(std::coroutine_handle<> ch) {\n-            std::move(_input).detach([this, ch](stlab::future<R>&& f) {\n-                _input = std::move(f);\n-                ch.resume();\n-            });\n-        }\n-    };\n-    return Awaiter{std::move(f)};\n+template <class R>\n+auto operator co_await(stlab::future<R>&& f) {\n+    return stlab::detail::resume_on_awaiter<R>{stlab::immediate_executor, std::move(f)};\n }\n \n+// co_await on an lvalue future is deleted — use std::move(f) to make cancellation semantics\n+// explicit\n+template <class R>\n+auto operator co_await(stlab::future<R>& f) = delete;\n+\n #endif // STLAB_STD_COROUTINES()\n \n #endif"},{"sha":"45bbdadc552fa9900afaad5c3eb135e6ad763a44","filename":"src/CMakeLists.txt","status":"modified","additions":11,"deletions":0,"changes":11,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/src%2FCMakeLists.txt","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/src%2FCMakeLists.txt","contents_url":"https://api.github.com/repos/stlab/stlab/contents/src%2FCMakeLists.txt?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -2,6 +2,17 @@ target_sources(stlab PRIVATE pre_exit.cpp concurrency/default_executor.cpp)\n target_include_directories(stlab PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include ${PROJECT_BINARY_DIR}/include)\n target_compile_definitions(stlab PRIVATE $<$<CXX_COMPILER_ID:MSVC>:NOMINMAX>)\n \n+# Apply ASan to the library when requested so it matches test executables (avoids LNK2038 annotation mismatch).\n+if(STLAB_SANITIZER STREQUAL \"address\")\n+  if(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n+    target_compile_options(stlab PRIVATE /fsanitize=address)\n+    target_link_options(stlab PRIVATE /INCREMENTAL:NO)\n+  elseif(CMAKE_CXX_COMPILER_ID MATCHES \"Clang\" OR CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\")\n+    target_compile_options(stlab PRIVATE -fsanitize=address -fno-omit-frame-pointer)\n+    target_link_options(stlab PRIVATE -fsanitize=address)\n+  endif()\n+endif()\n+\n if(BUILD_SHARED_LIBS)\n     set_target_properties(stlab PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)\n endif()"},{"sha":"6a2bf5e256fb5a0b88884b4209f40b19cd4f72e9","filename":"test/CMakeLists.txt","status":"modified","additions":6,"deletions":37,"changes":43,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2FCMakeLists.txt","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2FCMakeLists.txt","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2FCMakeLists.txt?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -1,36 +1,7 @@\n include(stlab/development)\n \n-# test dependencies\n-## Boost\n-\n-set(BUILD_SHARED_LIBS OFF)\n-set(Boost_USE_STATIC_LIBS ON)\n-\n-# Set global sanitizer flags before any targets are created\n-if(STLAB_SANITIZER STREQUAL \"address\")\n-  if(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n-    add_compile_options(/fsanitize=address)\n-    add_link_options(/fsanitize=address)\n-  elseif(CMAKE_CXX_COMPILER_ID MATCHES \"Clang\" OR CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\")\n-    add_compile_options(-fsanitize=address -fno-omit-frame-pointer)\n-    add_link_options(-fsanitize=address)\n-  endif()\n-endif()\n-\n-# https://github.com/boostorg/boost/releases\n-CPMAddPackage(\n-  NAME Boost\n-  VERSION 1.89.0\n-  URL https://github.com/boostorg/boost/releases/download/boost-1.89.0/boost-1.89.0-cmake.7z\n-  URL_HASH SHA256=252149f583054515b10688855b24ca1c16072b5118e603b8fe017894d319c262\n-  OPTIONS \"BOOST_ENABLE_CMAKE ON\" \"BOOST_INCLUDE_LIBRARIES test\" # Note the escapes!  container\\\\\\;asio\n-)\n-\n-# Mark the boost header files as external for MSVC\n-if(MSVC)\n-  get_target_property(Boost_INCLUDE_DIR Boost::unit_test_framework INTERFACE_INCLUDE_DIRECTORIES)\n-  add_compile_options(/external:I${Boost_INCLUDE_DIR} /external:W0)\n-endif()\n+# test dependencies: doctest is fetched in root CMakeLists when BUILD_TESTING is ON\n+# Sanitizer options from development.cmake apply to test targets; stlab target gets them in src/CMakeLists.txt.\n \n add_executable(stlab.test.channel\n   channel_functor_tests.cpp\n@@ -63,11 +34,11 @@ add_library(stlab::testing ALIAS testing)\n \n #\n # CMake targets linking to the stlab::testing target will (transitively)\n-# link to the Boost::unit_test_framework and to stlab::stlab target.\n+# link to doctest::doctest and to stlab::stlab target.\n #\n \n target_link_libraries(testing INTERFACE\n-  Boost::unit_test_framework\n+  doctest::doctest\n   stlab::development\n   stlab::stlab)\n \n@@ -89,7 +60,6 @@ add_test(\n \n add_executable(stlab.test.future\n   future_recover_tests.cpp\n-  future_test_helper.cpp\n   future_tests.cpp\n   future_then_tests.cpp\n   future_when_all_arguments_tests.cpp\n@@ -178,7 +148,6 @@ add_test(\n   COMMAND stlab.test.cow\n )\n \n-\n ################################################################################\n \n add_executable(stlab.test.task\n@@ -200,7 +169,7 @@ add_executable(stlab.test.tuple\n   tuple_test.cpp\n   main.cpp)\n \n-target_compile_definitions(stlab.test.channel PRIVATE STLAB_UNIT_TEST)\n+target_compile_definitions(stlab.test.tuple PRIVATE STLAB_UNIT_TEST)\n \n target_link_libraries(stlab.test.tuple PUBLIC stlab::testing)\n \n@@ -215,7 +184,7 @@ add_executable(stlab.test.traits\n   traits_test.cpp\n   main.cpp)\n \n-target_compile_definitions(stlab.test.channel PRIVATE STLAB_UNIT_TEST)\n+target_compile_definitions(stlab.test.traits PRIVATE STLAB_UNIT_TEST)\n \n target_link_libraries(stlab.test.traits PUBLIC stlab::testing)\n "},{"sha":"ff045c8ad6bf9eaf3f9631fc46a1ff894359d27d","filename":"test/channel_functor_tests.cpp","status":"modified","additions":26,"deletions":52,"changes":78,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_functor_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_functor_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fchannel_functor_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -8,7 +8,7 @@\n \n #include <atomic>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/channel.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -21,10 +21,7 @@\n \n using channel_test_fixture_int_1 = channel_test_helper::channel_test_fixture<int, 1>;\n \n-BOOST_FIXTURE_TEST_SUITE(int_channel_void_functor, channel_test_fixture_int_1)\n-\n-BOOST_AUTO_TEST_CASE(int_channel_void_functor_one_value) {\n-    BOOST_TEST_MESSAGE(\"int channel void functor one value\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_void_functor_one_value\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [&](int x) { result += x; };\n@@ -34,11 +31,10 @@ BOOST_AUTO_TEST_CASE(int_channel_void_functor_one_value) {\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(1, result);\n+    REQUIRE(result == 1);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_void_functor_two_values) {\n-    BOOST_TEST_MESSAGE(\"int channel void functor two values\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_void_functor_two_values\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [&](int x) { result += x; };\n@@ -48,12 +44,10 @@ BOOST_AUTO_TEST_CASE(int_channel_void_functor_two_values) {\n     _send[0](2);\n \n     wait_until_done([&]() { return result == 3; });\n-    BOOST_REQUIRE_EQUAL(3, result);\n+    REQUIRE(result == 3);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_void_functor_many_values) {\n-    BOOST_TEST_MESSAGE(\"int channel void functor many values\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_void_functor_many_values\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [&](int x) { result += x; };\n@@ -64,12 +58,10 @@ BOOST_AUTO_TEST_CASE(int_channel_void_functor_many_values) {\n     }\n \n     wait_until_done([&]() { return result == 10; });\n-    BOOST_REQUIRE_EQUAL(10, result);\n+    REQUIRE(result == 10);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_split_void_functor) {\n-    BOOST_TEST_MESSAGE(\"int channel void functor\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_split_void_functor\") {\n     std::atomic_int result1{0};\n     std::atomic_int result2{0};\n \n@@ -83,13 +75,11 @@ BOOST_AUTO_TEST_CASE(int_channel_split_void_functor) {\n \n     wait_until_done([&]() { return result1 == 45 && result2 == 45; });\n \n-    BOOST_REQUIRE_EQUAL(45, result1);\n-    BOOST_REQUIRE_EQUAL(45, result2);\n+    REQUIRE(result1 == 45);\n+    REQUIRE(result2 == 45);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_int_functor) {\n-    BOOST_TEST_MESSAGE(\"int channel int functor\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_int_functor\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [](int x) { return x + x; } | [&](int x) { result += x; };\n@@ -100,11 +90,10 @@ BOOST_AUTO_TEST_CASE(int_channel_int_functor) {\n     }\n \n     wait_until_done([&]() { return result == 90; });\n-    BOOST_REQUIRE_EQUAL(90, result);\n+    REQUIRE(result == 90);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_split_int_functor) {\n-    BOOST_TEST_MESSAGE(\"int channel int functor\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_split_int_functor\") {\n     std::atomic_int result1{0};\n     std::atomic_int result2{0};\n \n@@ -120,12 +109,11 @@ BOOST_AUTO_TEST_CASE(int_channel_split_int_functor) {\n \n     wait_until_done([&] { return result1 == 90 && result2 == 90; });\n \n-    BOOST_REQUIRE_EQUAL(90, result1);\n-    BOOST_REQUIRE_EQUAL(90, result2);\n+    REQUIRE(result1 == 90);\n+    REQUIRE(result2 == 90);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_split_int_functor_async) {\n-    BOOST_TEST_MESSAGE(\"int channel int functor asynchronous\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_split_int_functor_async\") {\n     std::vector<stlab::future<void>> inputs;\n     inputs.reserve(10);\n     for (auto i = 0; i < 10; ++i) {\n@@ -145,20 +133,14 @@ BOOST_AUTO_TEST_CASE(int_channel_split_int_functor_async) {\n \n     wait_until_done([&] { return result1 == 90 && result2 == 90; });\n \n-    BOOST_REQUIRE_EQUAL(90, result1);\n-    BOOST_REQUIRE_EQUAL(90, result2);\n+    REQUIRE(result1 == 90);\n+    REQUIRE(result2 == 90);\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n using channel_test_fixture_move_only_1 =\n     channel_test_helper::channel_test_fixture<stlab::move_only, 1>;\n \n-BOOST_FIXTURE_TEST_SUITE(move_only_channel_void_functor, channel_test_fixture_move_only_1)\n-\n-BOOST_AUTO_TEST_CASE(move_only_int_channel_void_functor) {\n-    BOOST_TEST_MESSAGE(\"move only int channel void functor\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_move_only_1, \"move_only_int_channel_void_functor\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [&](stlab::move_only x) { result += x.member(); };\n@@ -169,12 +151,10 @@ BOOST_AUTO_TEST_CASE(move_only_int_channel_void_functor) {\n     }\n \n     wait_until_done([&]() { return result == 10; });\n-    BOOST_REQUIRE_EQUAL(10, result);\n+    REQUIRE(result == 10);\n }\n \n-BOOST_AUTO_TEST_CASE(move_only_int_channel_void_functor_async) {\n-    BOOST_TEST_MESSAGE(\"move only int channel void functor asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_move_only_1, \"move_only_int_channel_void_functor_async\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [&](stlab::move_only x) { result += x.member(); };\n@@ -188,12 +168,10 @@ BOOST_AUTO_TEST_CASE(move_only_int_channel_void_functor_async) {\n     }\n \n     wait_until_done([&]() { return result == 10; });\n-    BOOST_REQUIRE_EQUAL(10, result);\n+    REQUIRE(result == 10);\n }\n \n-BOOST_AUTO_TEST_CASE(move_only_int_channel_int_functor) {\n-    BOOST_TEST_MESSAGE(\"move only int channel int functor\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_move_only_1, \"move_only_int_channel_int_functor\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [](stlab::move_only x) { return stlab::move_only(2 * x.member()); } |\n@@ -206,12 +184,10 @@ BOOST_AUTO_TEST_CASE(move_only_int_channel_int_functor) {\n \n     wait_until_done([&]() { return result >= 20; });\n \n-    BOOST_REQUIRE_EQUAL(20, result);\n+    REQUIRE(result == 20);\n }\n \n-BOOST_AUTO_TEST_CASE(move_only_int_channel_int_functor_async) {\n-    BOOST_TEST_MESSAGE(\"move only int channel int functor asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_move_only_1, \"move_only_int_channel_int_functor_async\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | [](stlab::move_only x) { return stlab::move_only(2 * x.member()); } |\n@@ -227,7 +203,5 @@ BOOST_AUTO_TEST_CASE(move_only_int_channel_int_functor_async) {\n \n     wait_until_done([&]() { return result >= 20; });\n \n-    BOOST_REQUIRE_EQUAL(20, result);\n+    REQUIRE(result == 20);\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"fcbe2e31ce349ad0286850c17ebf285fbd66a135","filename":"test/channel_merge_round_robin_tests.cpp","status":"modified","additions":32,"deletions":54,"changes":86,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_merge_round_robin_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_merge_round_robin_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fchannel_merge_round_robin_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -11,7 +11,7 @@\n #include <utility>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/channel.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -21,10 +21,8 @@\n \n using channel_test_fixture_int_1 = channel_test_helper::channel_test_fixture<int, 1>;\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_one_value,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel void functor one value one value\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_round_robin_channel_void_functor_one_value\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::round_robin_t>(\n@@ -35,13 +33,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_one_value,\n \n     wait_until_done([&] { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(1, result);\n+    REQUIRE(1 == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_one_value_async,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel void functor one value asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_round_robin_channel_void_functor_one_value_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::round_robin_t>(\n@@ -52,13 +48,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_one_value_asy\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(1, result);\n+    REQUIRE(1 == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_many_values,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel void functor many values\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_round_robin_channel_void_functor_many_values\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::round_robin_t>(\n@@ -73,13 +67,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_many_values,\n \n     wait_until_done([&] { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_many_values_async,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel void functor many values asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_round_robin_channel_void_functor_many_values_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::round_robin_t>(\n@@ -94,15 +86,13 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_void_functor_many_values_a\n     auto expected = 100 * (100 + 1) / 2;\n     wait_until_done([&] { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }\n \n using channel_test_fixture_int_2 = channel_test_helper::channel_test_fixture<int, 2>;\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_one_value,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel same type void functor oane value\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_merge_round_robin_channel_same_type_void_functor_one_value\") {\n     std::atomic_int result{0};\n     int incrementer{1};\n     auto check = stlab::merge_channel<stlab::round_robin_t>(\n@@ -121,14 +111,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_one\n     auto expectation = 2 + 2 * 3;\n     wait_until_done([&] { return result >= expectation; });\n \n-    BOOST_REQUIRE_EQUAL(expectation, result);\n+    REQUIRE(expectation == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_one_value_async,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\n-        \"int merge round robin channel same type void functor one value asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_merge_round_robin_channel_same_type_void_functor_one_value_async\") {\n     std::atomic_int result{0};\n     int incrementer{1};\n     auto check = stlab::merge_channel<stlab::round_robin_t>(\n@@ -150,13 +137,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_one\n     auto expectation = 2 + 2 * 3;\n     wait_until_done([&] { return result >= expectation; });\n \n-    BOOST_REQUIRE_EQUAL(expectation, result);\n+    REQUIRE(expectation == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_many_values,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel same type void functor many values\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_merge_round_robin_channel_same_type_void_functor_many_values\") {\n     std::atomic_int result{0};\n     int incrementer{1};\n     auto check = stlab::merge_channel<stlab::round_robin_t>(\n@@ -179,17 +164,14 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_man\n                        9 * 18 + 9 * 19 + 10 * 20;\n     wait_until_done([&] { return result >= expectation; });\n \n-    BOOST_REQUIRE_EQUAL(expectation, result);\n+    REQUIRE(expectation == result);\n }\n \n using channel_test_fixture_pair_2 =\n     channel_test_helper::channel_test_fixture<std::pair<int, std::size_t>, 5>;\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_many_values_async,\n-                        channel_test_fixture_pair_2) {\n-    BOOST_TEST_MESSAGE(\n-        \"int merge round robin channel same type void functor many values asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_pair_2,\n+                  \"int_merge_round_robin_channel_same_type_void_functor_many_values_async\") {\n     std::atomic_int result{0};\n     std::atomic_bool zipped_ok{true};\n     std::size_t expected_input{0};\n@@ -219,16 +201,14 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_man\n \n     wait_until_done([&] { return result >= expectation; });\n \n-    BOOST_REQUIRE_EQUAL(true, zipped_ok);\n-    BOOST_REQUIRE_EQUAL(expectation, result);\n+    REQUIRE(zipped_ok);\n+    REQUIRE(expectation == result);\n }\n \n using channel_test_fixture_int_5 = channel_test_helper::channel_test_fixture<int, 5>;\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor,\n-                        channel_test_fixture_int_5) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel same type void functor\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_5,\n+                  \"int_merge_round_robin_channel_same_type_void_functor\") {\n     std::atomic_int result{0};\n     std::atomic_int incrementer{1};\n \n@@ -252,13 +232,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor,\n     const auto expected = 2 * 1 + 3 * 2 + 4 * 3 + 5 * 4 + 6 * 5;\n     wait_until_done([&] { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_async,\n-                        channel_test_fixture_int_5) {\n-    BOOST_TEST_MESSAGE(\"int merge round robin channel same type void functor asynchronous\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_5,\n+                  \"int_merge_round_robin_channel_same_type_void_functor_async\") {\n     std::atomic_int result{0};\n     std::atomic_int incrementer{1};\n \n@@ -283,5 +261,5 @@ BOOST_FIXTURE_TEST_CASE(int_merge_round_robin_channel_same_type_void_functor_asy\n     const auto expected = 2 * 1 + 3 * 2 + 4 * 3 + 5 * 4 + 6 * 5;\n     wait_until_done([&] { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }"},{"sha":"e0b072ff49d147ea777fd8d072fe8196f11b47f9","filename":"test/channel_merge_unordered_tests.cpp","status":"modified","additions":31,"deletions":53,"changes":84,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_merge_unordered_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_merge_unordered_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fchannel_merge_unordered_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -9,7 +9,7 @@\n #include <atomic>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/channel.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -19,10 +19,8 @@\n \n using channel_test_fixture_int_1 = channel_test_helper::channel_test_fixture<int, 1>;\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_one_value,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel void functor one value one value\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_unordered_channel_void_functor_one_value\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -33,13 +31,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_one_value,\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(1, result);\n+    REQUIRE(1 == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_one_value_async,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel void functor one value asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_unordered_channel_void_functor_one_value_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -50,13 +46,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_one_value_async\n \n     wait_until_done([&] { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(1, result);\n+    REQUIRE(1 == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_many_values,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel void functor many values\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_unordered_channel_void_functor_many_values\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -71,13 +65,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_many_values,\n \n     wait_until_done([&]() { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_many_values_async,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel void functor many values asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_merge_unordered_channel_void_functor_many_values_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -92,15 +84,13 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_void_functor_many_values_asy\n     auto expected = 100 * (100 + 1) / 2;\n     wait_until_done([&]() { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }\n \n using channel_test_fixture_int_2 = channel_test_helper::channel_test_fixture<int, 2>;\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_one_value,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel same type void functor oane value\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_merge_unordered_channel_same_type_void_functor_one_value\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -113,14 +103,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_one_v\n \n     wait_until_done([&]() { return result >= 5; });\n \n-    BOOST_REQUIRE_EQUAL(5, result);\n+    REQUIRE(5 == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_one_value_async,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\n-        \"int merge unordered_t channel same type void functor one value asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_merge_unordered_channel_same_type_void_functor_one_value_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -136,13 +123,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_one_v\n \n     wait_until_done([&]() { return result >= 5; });\n \n-    BOOST_REQUIRE_EQUAL(5, result);\n+    REQUIRE(5 == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_many_values,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel same type void functor many values\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_merge_unordered_channel_same_type_void_functor_many_values\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -159,14 +144,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_many_\n         0 + 1 + 1 + 2 + 2 + 3 + 3 + 4 + 4 + 5 + 5 + 6 + 6 + 7 + 7 + 8 + 8 + 9 + 9 + 10;\n     wait_until_done([&] { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_many_values_async,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\n-        \"int merge unordered_t channel same type void functor many values asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_merge_unordered_channel_same_type_void_functor_many_values_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -185,14 +167,12 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_many_\n         0 + 1 + 1 + 2 + 2 + 3 + 3 + 4 + 4 + 5 + 5 + 6 + 6 + 7 + 7 + 8 + 8 + 9 + 9 + 10;\n     wait_until_done([&] { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(expected == result);\n }\n \n using channel_test_fixture_int_5 = channel_test_helper::channel_test_fixture<int, 5>;\n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor,\n-                        channel_test_fixture_int_5) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel same type void functor\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_5,\n+                  \"int_merge_unordered_channel_same_type_void_functor\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -211,13 +191,11 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor,\n     const auto expectation = 2 + 3 + 4 + 5 + 6;\n     wait_until_done([&]() { return result >= expectation; });\n \n-    BOOST_REQUIRE_EQUAL(expectation, result);\n+    REQUIRE(expectation == result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_async,\n-                        channel_test_fixture_int_5) {\n-    BOOST_TEST_MESSAGE(\"int merge unordered_t channel same type void functor asynchronous\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_5,\n+                  \"int_merge_unordered_channel_same_type_void_functor_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::merge_channel<stlab::unordered_t>(\n@@ -236,5 +214,5 @@ BOOST_FIXTURE_TEST_CASE(int_merge_unordered_channel_same_type_void_functor_async\n     const auto expectation = 2 + 3 + 4 + 5 + 6;\n     wait_until_done([&]() { return result >= expectation; });\n \n-    BOOST_REQUIRE_EQUAL(expectation, result);\n+    REQUIRE(expectation == result);\n }"},{"sha":"9c4577bedaf28293bad0770b1769986cd503162b","filename":"test/channel_merge_zip_with_tests.cpp","status":"modified","additions":41,"deletions":66,"changes":107,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_merge_zip_with_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_merge_zip_with_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fchannel_merge_zip_with_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -11,7 +11,7 @@\n #include <tuple>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/channel.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -21,9 +21,7 @@\n \n using channel_test_fixture_int_1 = channel_test_helper::channel_test_fixture<int, 1>;\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_with_channel_void_functor_one_value, channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel void functor one value one value\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_zip_with_channel_void_functor_one_value\") {\n     std::atomic_int result{0};\n \n     auto check = zip_with(stlab::default_executor, [&](int x) { result = x; }, _receive[0]);\n@@ -33,13 +31,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_with_channel_void_functor_one_value, channel_tes\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(1, result);\n+    REQUIRE(result == 1);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_with_channel_void_functor_one_value_async,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel void functor one value asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_zip_with_channel_void_functor_one_value_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(stlab::default_executor, [&](int x) { result = x; }, _receive[0]);\n@@ -49,13 +45,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_with_channel_void_functor_one_value_async,\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(1, result);\n+    REQUIRE(result == 1);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_void_functor_many_values,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel void functor many values\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_zip_width_channel_void_functor_many_values\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(stlab::default_executor, [&](int x) { result += x; }, _receive[0]);\n@@ -69,13 +63,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_void_functor_many_values,\n \n     wait_until_done([&]() { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(result == expected);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_void_functor_many_values_async,\n-                        channel_test_fixture_int_1) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel void functor many values asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_zip_width_channel_void_functor_many_values_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(stlab::default_executor, [&](int x) { result += x; }, _receive[0]);\n@@ -90,15 +82,13 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_void_functor_many_values_async,\n     auto expected = 100 * (100 + 1) / 2;\n     wait_until_done([&]() { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(result == expected);\n }\n \n using channel_test_fixture_int_2 = channel_test_helper::channel_test_fixture<int, 2>;\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_one_value,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel same type void functor oane value\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_zip_width_channel_same_type_void_functor_one_value\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(\n@@ -112,13 +102,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_one_value,\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(13, result);\n+    REQUIRE(result == 13);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_one_value_async,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel same type void functor one value asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_zip_width_channel_same_type_void_functor_one_value_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(\n@@ -135,13 +123,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_one_value_a\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(13, result);\n+    REQUIRE(result == 13);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_many_values,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel same type void functor many values\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_zip_width_channel_same_type_void_functor_many_values\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(\n@@ -157,15 +143,13 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_many_values\n \n     wait_until_done([&]() { return result >= 255; });\n \n-    BOOST_REQUIRE_EQUAL(3 + 2 + 6 + 4 + 9 + 6 + 12 + 8 + 15 + 10 + 18 + 12 + 21 + 14 + 24 + 16 +\n-                            27 + 18 + 30,\n-                        result);\n+    const auto expected_result =\n+        3 + 2 + 6 + 4 + 9 + 6 + 12 + 8 + 15 + 10 + 18 + 12 + 21 + 14 + 24 + 16 + 27 + 18 + 30;\n+    REQUIRE(result == expected_result);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_many_values_async,\n-                        channel_test_fixture_int_2) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel same type void functor many values asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_2,\n+                  \"int_zip_width_channel_same_type_void_functor_many_values_async\") {\n     std::atomic_int result{0};\n \n     auto check = zip_with(\n@@ -186,13 +170,12 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_many_values\n         3 + 2 + 6 + 4 + 9 + 6 + 12 + 8 + 15 + 10 + 18 + 12 + 21 + 14 + 24 + 16 + 27 + 18 + 30;\n     wait_until_done([&]() { return result >= expected; });\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(result == expected);\n }\n \n using channel_test_fixture_int_5 = channel_test_helper::channel_test_fixture<int, 5>;\n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor, channel_test_fixture_int_5) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel same type void functor\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_5,\n+                  \"int_zip_width_channel_same_type_void_functor\") {\n     std::atomic_int result{0};\n \n     auto check = zip_with(\n@@ -212,13 +195,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor, channel_te\n     const auto expectation = 4 + 9 + 16 + 25 + 36;\n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(expectation, result);\n+    REQUIRE(result == expectation);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_async,\n-                        channel_test_fixture_int_5) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel same type void functor asynchronous\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_5,\n+                  \"int_zip_width_channel_same_type_void_functor_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(\n@@ -239,16 +220,14 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_same_type_void_functor_async,\n     wait_until_done([&]() { return result != 0; });\n     auto expected = 4 + 9 + 16 + 25 + 36;\n \n-    BOOST_REQUIRE_EQUAL(expected, result);\n+    REQUIRE(result == expected);\n }\n \n using channel_types_test_fixture_int_string =\n     channel_test_helper::channel_types_test_fixture<int, std::string>;\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_different_type_void_functor,\n-                        channel_types_test_fixture_int_string) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel different type void functor\");\n-\n+TEST_CASE_FIXTURE(channel_types_test_fixture_int_string,\n+                  \"int_zip_width_channel_different_type_void_functor\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(\n@@ -263,13 +242,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_different_type_void_functor,\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(5, result);\n+    REQUIRE(result == 5);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_2_join_different_type_void_functor_async,\n-                        channel_types_test_fixture_int_string) {\n-    BOOST_TEST_MESSAGE(\"int zip_with channel 2 join different type void functor asynchronous\");\n-\n+TEST_CASE_FIXTURE(channel_types_test_fixture_int_string,\n+                  \"int_zip_width_channel_2_join_different_type_void_functor_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip_with(\n@@ -284,13 +261,11 @@ BOOST_FIXTURE_TEST_CASE(int_zip_width_channel_2_join_different_type_void_functor\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(5, result);\n+    REQUIRE(result == 5);\n }\n \n-BOOST_FIXTURE_TEST_CASE(int_zip_with_channel_2_different_type_void_functor_async,\n-                        channel_types_test_fixture_int_string) {\n-    BOOST_TEST_MESSAGE(\"int zip 2 channels different type void functor asynchronous\");\n-\n+TEST_CASE_FIXTURE(channel_types_test_fixture_int_string,\n+                  \"int_zip_with_channel_2_different_type_void_functor_async\") {\n     std::atomic_int result{0};\n \n     auto check = stlab::zip(stlab::default_executor, receive<0>(), receive<1>()) |\n@@ -305,5 +280,5 @@ BOOST_FIXTURE_TEST_CASE(int_zip_with_channel_2_different_type_void_functor_async\n \n     wait_until_done([&]() { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(5, result);\n+    REQUIRE(result == 5);\n }"},{"sha":"37c437fda52499cd354c737e08568a6a230fbd9f","filename":"test/channel_process_tests.cpp","status":"modified","additions":33,"deletions":61,"changes":94,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_process_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_process_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fchannel_process_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -16,7 +16,7 @@\n #include <tuple>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/channel.hpp>\n@@ -29,11 +29,7 @@ using namespace stlab;\n \n using channel_test_fixture_int_1 = channel_test_helper::channel_test_fixture<int, 1>;\n \n-BOOST_FIXTURE_TEST_SUITE(int_channel_process_void_functor, channel_test_fixture_int_1)\n-\n-BOOST_AUTO_TEST_CASE(int_channel_process_with_one_step) {\n-    BOOST_TEST_MESSAGE(\"int channel process with one step\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_process_with_one_step\") {\n     std::atomic_int index{0};\n     std::vector<int> results(10, 0);\n \n@@ -50,13 +46,11 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_one_step) {\n     wait_until_done([&] { return index == 10; });\n \n     for (auto i = 0; i < 10; ++i) {\n-        BOOST_REQUIRE_EQUAL(i, results[i]);\n+        REQUIRE(results[i] == i);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_with_one_step_async) {\n-    BOOST_TEST_MESSAGE(\"int channel process with one step asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_process_with_one_step_async\") {\n     std::atomic_int index{0};\n     std::vector<int> results(10, 0);\n \n@@ -74,13 +68,11 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_one_step_async) {\n     wait_until_done([&] { return index == 10; });\n \n     for (auto i = 0; i < 10; ++i) {\n-        BOOST_REQUIRE_EQUAL(true, std::find(results.begin(), results.end(), i) != results.end());\n+        REQUIRE(std::find(results.begin(), results.end(), i) != results.end());\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps) {\n-    BOOST_TEST_MESSAGE(\"int channel process with two steps\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_process_with_two_steps\") {\n     std::atomic_int index{0};\n     std::vector<int> results(5, 0);\n \n@@ -98,13 +90,11 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps) {\n \n     std::array expectation{1, 5, 9, 13, 17};\n     for (auto i = 0; i < 5; ++i) {\n-        BOOST_REQUIRE_EQUAL(expectation[i], results[i]);\n+        REQUIRE(results[i] == expectation[i]);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps_async) {\n-    BOOST_TEST_MESSAGE(\"int channel process with two steps asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_process_with_two_steps_async\") {\n     std::atomic_int index{0};\n     std::vector<std::vector<int>> results;\n \n@@ -123,21 +113,19 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps_async) {\n     wait_until_done([&] { return index == 5; });\n \n     std::vector<int> expectations = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n-    BOOST_REQUIRE_EQUAL(std::size_t(5), results.size());\n+    REQUIRE(results.size() == std::size_t(5));\n \n     for (const auto& c : results) {\n-        BOOST_REQUIRE_EQUAL(std::size_t(2), c.size());\n+        REQUIRE(c.size() == std::size_t(2));\n         for (auto i : c) {\n             auto it = std::find(expectations.begin(), expectations.end(), i);\n-            BOOST_REQUIRE_EQUAL(true, it != expectations.end());\n+            REQUIRE(it != expectations.end());\n             expectations.erase(it);\n         }\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_with_many_steps) {\n-    BOOST_TEST_MESSAGE(\"int channel process with many steps\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_process_with_many_steps\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | channel_test_helper::sum<10>() | [&](int x) { result = x; };\n@@ -149,12 +137,10 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_many_steps) {\n \n     wait_until_done([&] { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(45, result);\n+    REQUIRE(result == 45);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_with_many_steps_async) {\n-    BOOST_TEST_MESSAGE(\"int channel process with many steps asynchronously\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_process_with_many_steps_async\") {\n     std::atomic_int result{0};\n \n     auto check = _receive[0] | channel_test_helper::sum<10>() | [&](int x) { result = x; };\n@@ -167,12 +153,10 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_many_steps_async) {\n \n     wait_until_done([&] { return result != 0; });\n \n-    BOOST_REQUIRE_EQUAL(45, result);\n+    REQUIRE(result == 45);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_split_process_one_step) {\n-    BOOST_TEST_MESSAGE(\"int channel split process one step\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_split_process_one_step\") {\n     std::atomic_int index1{0};\n     std::vector<int> results1(10, 0);\n     std::atomic_int index2{0};\n@@ -197,14 +181,12 @@ BOOST_AUTO_TEST_CASE(int_channel_split_process_one_step) {\n     wait_until_done([&] { return index1 == 10 && index2 == 10; });\n \n     for (auto i = 0; i < 10; ++i) {\n-        BOOST_REQUIRE_EQUAL(i, results1[i]);\n-        BOOST_REQUIRE_EQUAL(i, results2[i]);\n+        REQUIRE(results1[i] == i);\n+        REQUIRE(results2[i] == i);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_split_process_two_steps) {\n-    BOOST_TEST_MESSAGE(\"int channel split process two steps\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_split_process_two_steps\") {\n     std::atomic_int index1{0};\n     std::vector<int> results1(5);\n     std::atomic_int index2{0};\n@@ -230,14 +212,12 @@ BOOST_AUTO_TEST_CASE(int_channel_split_process_two_steps) {\n \n     const std::array expectation{1, 5, 9, 13, 17};\n     for (auto i = 0; i < 5; ++i) {\n-        BOOST_REQUIRE_EQUAL(expectation[i], results1[i]);\n-        BOOST_REQUIRE_EQUAL(expectation[i], results2[i]);\n+        REQUIRE(results1[i] == expectation[i]);\n+        REQUIRE(results2[i] == expectation[i]);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_split_process_many_steps) {\n-    BOOST_TEST_MESSAGE(\"int channel split process many steps\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_split_process_many_steps\") {\n     std::atomic_int result1{0};\n     std::atomic_int result2{0};\n \n@@ -253,14 +233,11 @@ BOOST_AUTO_TEST_CASE(int_channel_split_process_many_steps) {\n \n     wait_until_done([&] { return result1 != 0 && result2 != 0; });\n \n-    BOOST_REQUIRE_EQUAL(45, result1);\n-    BOOST_REQUIRE_EQUAL(45, result2);\n+    REQUIRE(result1 == 45);\n+    REQUIRE(result2 == 45);\n }\n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps_timed) {\n-    BOOST_TEST_MESSAGE(\"int channel process with two steps timed\");\n \n+TEST_CASE(\"int_channel_process_with_two_steps_timed\") {\n     std::atomic_int result{0};\n     stlab::sender<int> send;\n     stlab::receiver<int> receive;\n@@ -287,12 +264,11 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps_timed) {\n         invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(10)); });\n     }\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps_timed_wo_timeout) {\n-    BOOST_TEST_MESSAGE(\"int channel process with two steps timed w/o timeout\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"int_channel_process_with_two_steps_timed_wo_timeout\") {\n     std::atomic_int result{0};\n     stlab::sender<int> send;\n     stlab::receiver<int> receive;\n@@ -314,7 +290,7 @@ BOOST_AUTO_TEST_CASE(int_channel_process_with_two_steps_timed_wo_timeout) {\n         invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(10)); });\n     }\n \n-    BOOST_REQUIRE_EQUAL(85, result);\n+    REQUIRE(result == 85);\n }\n \n namespace {\n@@ -336,9 +312,7 @@ bool always_true{true}; // used to avoid unused variable warning\n \n } // namespace\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_set_error_is_called_on_upstream_error) {\n-    BOOST_TEST_MESSAGE(\"int channel process set_error is called on upstream error\");\n-\n+TEST_CASE(\"int_channel_process_set_error_is_called_on_upstream_error\") {\n     std::atomic_bool check{false};\n     stlab::sender<int> send;\n     stlab::receiver<int> receive;\n@@ -359,7 +333,7 @@ BOOST_AUTO_TEST_CASE(int_channel_process_set_error_is_called_on_upstream_error)\n         invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(10)); });\n     }\n \n-    BOOST_REQUIRE_EQUAL(true, check.load());\n+    REQUIRE(check.load());\n }\n \n namespace {\n@@ -378,9 +352,7 @@ struct process_with_close {\n };\n } // namespace\n \n-BOOST_AUTO_TEST_CASE(int_channel_process_close_is_called_on_upstream_error) {\n-    BOOST_TEST_MESSAGE(\"int channel process close is called when an upstream eeror happened\");\n-\n+TEST_CASE(\"int_channel_process_close_is_called_on_upstream_error\") {\n     std::atomic_bool check{false};\n     stlab::sender<int> send;\n     stlab::receiver<int> receive;\n@@ -401,5 +373,5 @@ BOOST_AUTO_TEST_CASE(int_channel_process_close_is_called_on_upstream_error) {\n         invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(10)); });\n     }\n \n-    BOOST_REQUIRE_EQUAL(true, check.load());\n+    REQUIRE(check.load());\n }"},{"sha":"29b7e4136c2dec0d03d62d59117a9dd985b7baf9","filename":"test/channel_tests.cpp","status":"modified","additions":99,"deletions":119,"changes":218,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fchannel_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fchannel_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -13,13 +13,12 @@\n #include <functional>\n #include <initializer_list>\n #include <iostream>\n-#include <string>\n #include <thread>\n #include <tuple>\n #include <utility>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/executor_base.hpp>\n #include <stlab/concurrency/task.hpp>\n@@ -40,39 +39,32 @@\n \n using namespace stlab;\n \n-BOOST_AUTO_TEST_CASE(int_sender) {\n-    BOOST_TEST_MESSAGE(\"int sender\");\n-\n+TEST_CASE(\"int_sender\") {\n     stlab::sender<int> const send;\n \n-    BOOST_REQUIRE_NO_THROW(send(42));\n+    REQUIRE_NOTHROW(send(42));\n }\n \n-BOOST_AUTO_TEST_CASE(int_receiver) {\n-    BOOST_TEST_MESSAGE(\"int receiver\");\n-\n+TEST_CASE(\"int_receiver\") {\n     stlab::receiver<int> receive;\n \n-    BOOST_REQUIRE_EQUAL(false, receive.ready());\n+    REQUIRE(receive.ready() == false);\n \n     receive.set_ready();\n-    BOOST_REQUIRE_EQUAL(true, receive.ready());\n+    REQUIRE(receive.ready() == true);\n }\n \n using channel_test_fixture_int_1 = channel_test_helper::channel_test_fixture<int, 1>;\n \n-BOOST_FIXTURE_TEST_SUITE(int_channel, channel_test_fixture_int_1)\n-BOOST_AUTO_TEST_CASE(int_channel) {\n-    BOOST_TEST_MESSAGE(\"int channel\");\n-\n-    BOOST_REQUIRE_EQUAL(false, _receive[0].ready());\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel\") {\n+    REQUIRE(_receive[0].ready() == false);\n \n     _receive[0].set_ready();\n-    BOOST_REQUIRE_EQUAL(true, _receive[0].ready());\n+    REQUIRE(_receive[0].ready() == true);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_move_ctor_sender) {\n-    BOOST_TEST_MESSAGE(\"int channel move ctor sender\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_move_ctor_sender\") {\n+    // \"int channel move ctor sender\");\n \n     std::atomic_int result{0};\n \n@@ -84,11 +76,11 @@ BOOST_AUTO_TEST_CASE(int_channel_move_ctor_sender) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_move_assignment_sender) {\n-    BOOST_TEST_MESSAGE(\"int channel move assignment sender\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_move_assignment_sender\") {\n+    // \"int channel move assignment sender\");\n \n     stlab::sender<int> sut;\n     std::atomic_int result{0};\n@@ -101,11 +93,11 @@ BOOST_AUTO_TEST_CASE(int_channel_move_assignment_sender) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_copy_ctor_sender) {\n-    BOOST_TEST_MESSAGE(\"int channel copy ctor sender\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_copy_ctor_sender\") {\n+    // \"int channel copy ctor sender\");\n \n     std::atomic_int result{0};\n \n@@ -117,19 +109,19 @@ BOOST_AUTO_TEST_CASE(int_channel_copy_ctor_sender) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n \n     result = 0;\n \n     _send[0](4711);\n \n     wait_until_done([&] { return result == 4711; });\n \n-    BOOST_REQUIRE_EQUAL(4711, result);\n+    REQUIRE(result == 4711);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_copy_assignment_sender) {\n-    BOOST_TEST_MESSAGE(\"int channel copy assignment sender\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_copy_assignment_sender\") {\n+    // \"int channel copy assignment sender\");\n \n     stlab::sender<int> sut;\n     std::atomic_int result{0};\n@@ -142,19 +134,19 @@ BOOST_AUTO_TEST_CASE(int_channel_copy_assignment_sender) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n \n     result = 0;\n \n     _send[0](4711);\n \n     wait_until_done([&] { return result == 4711; });\n \n-    BOOST_REQUIRE_EQUAL(4711, result);\n+    REQUIRE(result == 4711);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_move_ctor_receiver) {\n-    BOOST_TEST_MESSAGE(\"int channel move ctor receiver\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_move_ctor_receiver\") {\n+    // \"int channel move ctor receiver\");\n \n     std::atomic_int result{0};\n \n@@ -166,11 +158,11 @@ BOOST_AUTO_TEST_CASE(int_channel_move_ctor_receiver) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_move_assignment_receiver) {\n-    BOOST_TEST_MESSAGE(\"int channel move assignment receiver\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_move_assignment_receiver\") {\n+    // \"int channel move assignment receiver\");\n \n     stlab::receiver<int> sut;\n     std::atomic_int result{0};\n@@ -183,11 +175,11 @@ BOOST_AUTO_TEST_CASE(int_channel_move_assignment_receiver) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_copy_ctor_receiver) {\n-    BOOST_TEST_MESSAGE(\"int channel copy ctor receiver\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_copy_ctor_receiver\") {\n+    // \"int channel copy ctor receiver\");\n \n     std::atomic_int result{0};\n \n@@ -201,11 +193,11 @@ BOOST_AUTO_TEST_CASE(int_channel_copy_ctor_receiver) {\n \n     wait_until_done([&]() { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_copy_assignment_receiver) {\n-    BOOST_TEST_MESSAGE(\"int channel copy assignment receiver\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_copy_assignment_receiver\") {\n+    // \"int channel copy assignment receiver\");\n \n     stlab::receiver<int> sut;\n     std::atomic_int result{0};\n@@ -221,10 +213,10 @@ BOOST_AUTO_TEST_CASE(int_channel_copy_assignment_receiver) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_concatenate_two_channels) {\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_concatenate_two_channels\") {\n     std::atomic_int result{0};\n     stlab::sender<int> A;\n     stlab::sender<int> X;\n@@ -244,10 +236,10 @@ BOOST_AUTO_TEST_CASE(int_concatenate_two_channels) {\n \n     wait_until_done([&] { return result == 42; });\n \n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(int_concatenate_channels_with_different_executor) {\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_concatenate_channels_with_different_executor\") {\n     {\n         std::atomic_int result{0};\n \n@@ -261,7 +253,7 @@ BOOST_AUTO_TEST_CASE(int_concatenate_channels_with_different_executor) {\n \n         wait_until_done([&] { return result == 43; });\n \n-        BOOST_REQUIRE_EQUAL(43, result);\n+        REQUIRE(result == 43);\n     }\n     test_reset();\n     {\n@@ -277,12 +269,10 @@ BOOST_AUTO_TEST_CASE(int_concatenate_channels_with_different_executor) {\n \n         wait_until_done([&] { return result == 43; });\n \n-        BOOST_REQUIRE_EQUAL(43, result);\n+        REQUIRE(result == 43);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n namespace {\n \n class main_queue {\n@@ -352,13 +342,13 @@ struct generator {\n };\n \n void RequireInClosedRange(size_t minValue, size_t test, size_t maxValue) {\n-    BOOST_REQUIRE_LE(minValue, test);\n-    BOOST_REQUIRE_LE(test, maxValue);\n+    REQUIRE(minValue <= test);\n+    REQUIRE(test <= maxValue);\n }\n \n } // namespace\n \n-BOOST_AUTO_TEST_CASE(int_channel_with_2_sized_buffer) {\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_with_2_sized_buffer\") {\n     main_queue q;\n \n     auto receive = stlab::channel<void>(q.executor());\n@@ -369,7 +359,7 @@ BOOST_AUTO_TEST_CASE(int_channel_with_2_sized_buffer) {\n \n     auto r2 = std::move(receive) | ref(myGenerator) | (stlab::buffer_size{2} & std::ref(myEcho)) |\n               [&valuesInFlight](auto x) {\n-                  BOOST_REQUIRE_EQUAL(x, valuesInFlight.front());\n+                  REQUIRE(valuesInFlight.front() == x);\n                   valuesInFlight.pop();\n                   std::cout << x << std::endl;\n               };\n@@ -379,12 +369,12 @@ BOOST_AUTO_TEST_CASE(int_channel_with_2_sized_buffer) {\n     // The first buffer has size 2 and the next process has per default size 1,\n     // so there can be max 2 + 1 values in flight\n     q.execute_next_task(); // generate value(0)\n-    BOOST_REQUIRE_GE(3U, valuesInFlight.size());\n+    REQUIRE(valuesInFlight.size() <= 3U);\n     q.execute_next_task(); // await and yield value(0) by echo\n-    BOOST_REQUIRE_GE(3U, valuesInFlight.size());\n+    REQUIRE(valuesInFlight.size() <= 3U);\n \n     q.execute_next_task(); // generate value(1)\n-    BOOST_REQUIRE_GE(3U, valuesInFlight.size());\n+    REQUIRE(valuesInFlight.size() <= 3U);\n     q.execute_next_task(); // generate value(2)\n     RequireInClosedRange(2U, valuesInFlight.size(), 3U);\n \n@@ -410,7 +400,7 @@ BOOST_AUTO_TEST_CASE(int_channel_with_2_sized_buffer) {\n     RequireInClosedRange(2U, valuesInFlight.size(), 3U);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_with_3_sized_buffer) {\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_with_3_sized_buffer\") {\n     main_queue q;\n \n     auto receive = stlab::channel<void>(q.executor());\n@@ -421,7 +411,7 @@ BOOST_AUTO_TEST_CASE(int_channel_with_3_sized_buffer) {\n \n     auto r2 = std::move(receive) | std::ref(myGenerator) |\n               (stlab::buffer_size{3} & std::ref(myEcho)) | [&valuesInFlight](auto x) {\n-                  BOOST_REQUIRE_EQUAL(x, valuesInFlight.front());\n+                  REQUIRE(valuesInFlight.front() == x);\n                   valuesInFlight.pop();\n               };\n \n@@ -431,11 +421,11 @@ BOOST_AUTO_TEST_CASE(int_channel_with_3_sized_buffer) {\n     // so there can be max 3 + 1 values in flight\n \n     q.execute_next_task(); // generate value(0)\n-    BOOST_REQUIRE_GE(3U, valuesInFlight.size());\n+    REQUIRE(valuesInFlight.size() <= 3U);\n     q.execute_next_task(); // await and yield value(0) by echo\n-    BOOST_REQUIRE_GE(3U, valuesInFlight.size());\n+    REQUIRE(valuesInFlight.size() <= 3U);\n     q.execute_next_task(); // generate value(1)\n-    BOOST_REQUIRE_GE(3U, valuesInFlight.size());\n+    REQUIRE(valuesInFlight.size() <= 3U);\n     q.execute_next_task(); // generate value(2)\n \n     RequireInClosedRange(2U, valuesInFlight.size(), 4U);\n@@ -463,7 +453,7 @@ BOOST_AUTO_TEST_CASE(int_channel_with_3_sized_buffer) {\n     RequireInClosedRange(2U, valuesInFlight.size(), 4U);\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_with_split_different_sized_buffer) {\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_with_split_different_sized_buffer\") {\n     // Here the bigger buffer size must not steer the upstream, but the\n     // smaller size\n     std::vector<std::pair<size_t, size_t>> const bufferSizes = {\n@@ -484,11 +474,11 @@ BOOST_AUTO_TEST_CASE(int_channel_with_split_different_sized_buffer) {\n                  generator<std::queue<int>, std::queue<int>>(valuesInFlight1, valuesInFlight2);\n \n         auto r1 = g | (stlab::buffer_size{bs.first} & echo()) | [&valuesInFlight1](auto x) {\n-            BOOST_REQUIRE_EQUAL(x, valuesInFlight1.front());\n+            REQUIRE(valuesInFlight1.front() == x);\n             valuesInFlight1.pop();\n         };\n         auto r2 = g | (stlab::buffer_size{bs.second} & echo()) | [&valuesInFlight2](auto x) {\n-            BOOST_REQUIRE_EQUAL(x, valuesInFlight2.front());\n+            REQUIRE(valuesInFlight2.front() == x);\n             valuesInFlight2.pop();\n         };\n \n@@ -533,8 +523,8 @@ BOOST_AUTO_TEST_CASE(int_channel_with_split_different_sized_buffer) {\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_one_value_different_buffer_sizes) {\n-    BOOST_TEST_MESSAGE(\"int channel one value different buffer sizes\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_one_value_different_buffer_sizes\") {\n+    // \"int channel one value different buffer sizes\");\n \n     for (auto bs : std::vector<std::size_t>{0, 1, 2, 10}) {\n         stlab::sender<int> send;\n@@ -551,12 +541,12 @@ BOOST_AUTO_TEST_CASE(int_channel_one_value_different_buffer_sizes) {\n             invoke_waiting([] { std::this_thread::sleep_for(std::chrono::microseconds(1)); });\n         }\n \n-        BOOST_REQUIRE_EQUAL(1, result);\n+        REQUIRE(result == 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_two_values_different_buffer_sizes) {\n-    BOOST_TEST_MESSAGE(\"int channel two values different buffer sizes\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_two_values_different_buffer_sizes\") {\n+    // \"int channel two values different buffer sizes\");\n \n     for (auto bs : std::vector<std::size_t>{0, 1, 2, 10}) {\n         stlab::sender<int> send;\n@@ -574,12 +564,12 @@ BOOST_AUTO_TEST_CASE(int_channel_two_values_different_buffer_sizes) {\n             invoke_waiting([] { std::this_thread::sleep_for(std::chrono::microseconds(1)); });\n         }\n \n-        BOOST_REQUIRE_EQUAL(2, result);\n+        REQUIRE(result == 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(int_channel_many_values_different_buffer_sizes) {\n-    BOOST_TEST_MESSAGE(\"int channel many values different buffer sizes\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"int_channel_many_values_different_buffer_sizes\") {\n+    // \"int channel many values different buffer sizes\");\n \n     {\n         for (auto bs : std::vector<std::size_t>{0, 1, 2, 10}) {\n@@ -599,7 +589,7 @@ BOOST_AUTO_TEST_CASE(int_channel_many_values_different_buffer_sizes) {\n                 invoke_waiting([] { std::this_thread::sleep_for(std::chrono::microseconds(1)); });\n             }\n \n-            BOOST_REQUIRE_EQUAL(10, result);\n+            REQUIRE(result == 10);\n         }\n     }\n     {\n@@ -620,57 +610,47 @@ BOOST_AUTO_TEST_CASE(int_channel_many_values_different_buffer_sizes) {\n                 invoke_waiting([] { std::this_thread::sleep_for(std::chrono::microseconds(1)); });\n             }\n \n-            BOOST_REQUIRE_EQUAL(10, result);\n+            REQUIRE(result == 10);\n         }\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(report_channel_broken_when_no_process_is_attached) {\n-    BOOST_TEST_MESSAGE(\"Expect broken channel exception when no process is attached\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"report_channel_broken_when_no_process_is_attached\") {\n+    // \"Expect broken channel exception when no process is attached\");\n \n     stlab::receiver<int> receive;\n \n-    BOOST_REQUIRE_EXCEPTION(\n-        (void)(receive | [](int) { return 1; }), stlab::channel_error,\n-        ([](const auto& e) { return std::string(\"broken channel\") == e.what(); }));\n-\n-    BOOST_REQUIRE_EXCEPTION(\n-        (void)(receive | (stlab::buffer_size{2} & [](int) { return 1; })), stlab::channel_error,\n-        ([](const auto& e) { return std::string(\"broken channel\") == e.what(); }));\n+    REQUIRE_THROWS_AS((void)(receive | [](int) { return 1; }), stlab::channel_error);\n+    REQUIRE_THROWS_AS((void)(receive | (stlab::buffer_size{2} & [](int) { return 1; })),\n+                      stlab::channel_error);\n }\n \n-BOOST_AUTO_TEST_CASE(report_channel_broken_when_process_is_already_running) {\n-    BOOST_TEST_MESSAGE(\n-        \"Expect \\\"process already running\\\" exception when process is already running\");\n-\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1,\n+                  \"report_channel_broken_when_process_is_already_running\") {\n     stlab::sender<int> send;\n     stlab::receiver<int> receive;\n     std::tie(send, receive) = stlab::channel<int>(stlab::default_executor);\n \n     receive.set_ready();\n \n-    BOOST_REQUIRE_EXCEPTION(\n-        (void)(receive | [](int) { return 1; }), stlab::channel_error,\n-        ([](const auto& e) { return std::string(\"process already running\") == e.what(); }));\n-\n-    BOOST_REQUIRE_EXCEPTION(\n-        (void)(receive | (stlab::buffer_size{2} & [](int) { return 1; })), stlab::channel_error,\n-        ([](const auto& e) { return std::string(\"process already running\") == e.what(); }));\n+    REQUIRE_THROWS_AS((void)(receive | [](int) { return 1; }), stlab::channel_error);\n+    REQUIRE_THROWS_AS((void)(receive | (stlab::buffer_size{2} & [](int) { return 1; })),\n+                      stlab::channel_error);\n }\n \n-BOOST_AUTO_TEST_CASE(sender_receiver_equality_tests) {\n-    BOOST_TEST_MESSAGE(\"running sender equality tests\");\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"sender_receiver_equality_tests\") {\n+    // \"running sender equality tests\");\n     {\n         stlab::sender<int> a;\n         stlab::sender<int> b;\n         stlab::receiver<int> x;\n         stlab::receiver<int> y;\n \n-        BOOST_REQUIRE(a == b);\n-        BOOST_REQUIRE(!(a != b));\n+        REQUIRE(a == b);\n+        REQUIRE(!(a != b));\n \n-        BOOST_REQUIRE(x == y);\n-        BOOST_REQUIRE(!(x != y));\n+        REQUIRE(x == y);\n+        REQUIRE(!(x != y));\n     }\n \n     {\n@@ -679,11 +659,11 @@ BOOST_AUTO_TEST_CASE(sender_receiver_equality_tests) {\n         stlab::receiver<stlab::move_only> x;\n         stlab::receiver<stlab::move_only> y;\n \n-        BOOST_REQUIRE(a == b);\n-        BOOST_REQUIRE(!(a != b));\n+        REQUIRE(a == b);\n+        REQUIRE(!(a != b));\n \n-        BOOST_REQUIRE(x == y);\n-        BOOST_REQUIRE(!(x != y));\n+        REQUIRE(x == y);\n+        REQUIRE(!(x != y));\n     }\n \n     {\n@@ -693,8 +673,8 @@ BOOST_AUTO_TEST_CASE(sender_receiver_equality_tests) {\n \n         auto a = send;\n         auto x = rec;\n-        BOOST_REQUIRE(send == a);\n-        BOOST_REQUIRE(rec == x);\n+        REQUIRE(send == a);\n+        REQUIRE(rec == x);\n     }\n \n     {\n@@ -705,20 +685,20 @@ BOOST_AUTO_TEST_CASE(sender_receiver_equality_tests) {\n         std::tie(a, x) = stlab::channel<int>(stlab::immediate_executor);\n         std::tie(b, y) = stlab::channel<int>(stlab::immediate_executor);\n \n-        BOOST_REQUIRE(a != b);\n-        BOOST_REQUIRE(x != y);\n+        REQUIRE(a != b);\n+        REQUIRE(x != y);\n     }\n     {\n         stlab::sender<stlab::move_only> send;\n         stlab::receiver<stlab::move_only> rec;\n         std::tie(send, rec) = stlab::channel<stlab::move_only>(stlab::immediate_executor);\n \n         stlab::sender<stlab::move_only> const a;\n-        BOOST_REQUIRE(a != send);\n+        REQUIRE(a != send);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(sender_receiver_swap_tests) {\n+TEST_CASE_FIXTURE(channel_test_fixture_int_1, \"sender_receiver_swap_tests\") {\n     {\n         stlab::sender<int> a;\n         stlab::sender<int> b;\n@@ -740,8 +720,8 @@ BOOST_AUTO_TEST_CASE(sender_receiver_swap_tests) {\n         a(1);\n         b(2);\n \n-        BOOST_REQUIRE_EQUAL(1, result2);\n-        BOOST_REQUIRE_EQUAL(2, result1);\n+        REQUIRE(result2 == 1);\n+        REQUIRE(result1 == 2);\n     }\n     {\n         stlab::sender<int> a;\n@@ -764,8 +744,8 @@ BOOST_AUTO_TEST_CASE(sender_receiver_swap_tests) {\n         a(1);\n         b(2);\n \n-        BOOST_REQUIRE_EQUAL(1, result2);\n-        BOOST_REQUIRE_EQUAL(2, result1);\n+        REQUIRE(result2 == 1);\n+        REQUIRE(result1 == 2);\n     }\n     {\n         stlab::sender<stlab::move_only> a;\n@@ -788,8 +768,8 @@ BOOST_AUTO_TEST_CASE(sender_receiver_swap_tests) {\n         a(1);\n         b(2);\n \n-        BOOST_REQUIRE_EQUAL(1, result2);\n-        BOOST_REQUIRE_EQUAL(2, result1);\n+        REQUIRE(result2 == 1);\n+        REQUIRE(result1 == 2);\n     }\n     {\n         stlab::sender<stlab::move_only> a;\n@@ -812,7 +792,7 @@ BOOST_AUTO_TEST_CASE(sender_receiver_swap_tests) {\n         a(1);\n         b(2);\n \n-        BOOST_REQUIRE_EQUAL(1, result2);\n-        BOOST_REQUIRE_EQUAL(2, result1);\n+        REQUIRE(result2 == 1);\n+        REQUIRE(result1 == 2);\n     }\n }"},{"sha":"ebd23fbe43b6d317f460bf6376b2ade2d8107e44","filename":"test/cow_test.cpp","status":"modified","additions":65,"deletions":67,"changes":132,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fcow_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fcow_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fcow_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -14,7 +14,7 @@\n #include <tuple>\n #include <utility>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n // #include <adobe/test/check_regular.hpp>\n // #include <adobe/test/check_less_than_comparable.hpp>\n // #include <adobe/test/check_null.hpp>\n@@ -72,15 +72,15 @@ void test_copy_on_write() {\n \n         CowType value_test(mv(1)); // allocation\n \n-        BOOST_CHECK_MESSAGE(value_1 == value_test, \"equality of non-identical values\");\n-        BOOST_CHECK_MESSAGE(value_2 != value_test, \"equality of non-identical values\");\n+        REQUIRE(value_1 == value_test);\n+        REQUIRE(value_2 != value_test);\n \n-        BOOST_CHECK(value_test.unique());\n+        REQUIRE(value_test.unique());\n \n         value_test = value_2; // deallocation\n \n-        BOOST_CHECK(!value_test.unique());\n-        BOOST_CHECK(value_test.identity(value_2));\n+        REQUIRE(!value_test.unique());\n+        REQUIRE(value_test.identity(value_2));\n     }\n \n     // Test basic move semantics\n@@ -89,12 +89,12 @@ void test_copy_on_write() {\n         CowType value_2(mv(21)); // allocation\n         CowType value_move(std::move(value_1));\n \n-        // BOOST_CHECK_MESSAGE(value_move != value_1, \"move failure\");\n+        // REQUIRE(value_move != value_1, \"move failure\");\n \n         value_move = std::move(value_2); // deallocation\n \n-        // BOOST_CHECK_MESSAGE(value_move != value_2, \"move failure\");\n-        // BOOST_CHECK_MESSAGE(value_1 == value_2, \"move failure\"); // both should be object_m == 0\n+        // REQUIRE(value_move != value_2, \"move failure\");\n+        // REQUIRE(value_1 == value_2, \"move failure\"); // both should be object_m == 0\n     }\n \n     // Test copy-assignment using null object_m\n@@ -110,12 +110,12 @@ void test_copy_on_write() {\n         CowType foo(mv(5)); // allocation\n         CowType bar(foo);\n \n-        BOOST_CHECK(bar.identity(foo));\n+        REQUIRE(bar.identity(foo));\n \n         bar = mv(6); // allocation\n \n-        BOOST_CHECK(bar.unique());\n-        BOOST_CHECK(foo.unique());\n+        REQUIRE(bar.unique());\n+        REQUIRE(foo.unique());\n     }\n \n     // Test move-assignment using null object_m\n@@ -163,13 +163,11 @@ void test_copy_on_write() {\n     {\n         CowType foo(mv(1)); // allocation\n \n-        BOOST_CHECK_MESSAGE(foo.read() == typename CowType::value_type(mv(1)), \"read error\");\n-        BOOST_CHECK_MESSAGE(static_cast<typename CowType::value_type>(foo) ==\n-                                typename CowType::value_type(mv(1)),\n-                            \"read error\");\n-        BOOST_CHECK_MESSAGE(*foo == typename CowType::value_type(mv(1)), \"read error\");\n-        BOOST_CHECK_MESSAGE(*(foo.operator->()) == typename CowType::value_type(mv(1)),\n-                            \"read error\");\n+        REQUIRE(foo.read() == typename CowType::value_type(mv(1)));\n+        REQUIRE(static_cast<typename CowType::value_type>(foo) ==\n+                typename CowType::value_type(mv(1)));\n+        REQUIRE(*foo == typename CowType::value_type(mv(1)));\n+        REQUIRE(*(foo.operator->()) == typename CowType::value_type(mv(1)));\n     }\n \n     // Test swap\n@@ -179,8 +177,8 @@ void test_copy_on_write() {\n \n         swap(foo, bar);\n \n-        BOOST_CHECK_MESSAGE(foo.read() == typename CowType::value_type(mv(2)), \"swap error\");\n-        BOOST_CHECK_MESSAGE(bar.read() == typename CowType::value_type(mv(1)), \"swap error\");\n+        REQUIRE(foo.read() == typename CowType::value_type(mv(2)));\n+        REQUIRE(bar.read() == typename CowType::value_type(mv(1)));\n     }\n }\n \n@@ -190,7 +188,7 @@ void test_copy_on_write() {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(copy_on_write_interface) {\n+TEST_CASE(\"copy_on_write_interface\") {\n     using namespace stlab;\n \n     {\n@@ -205,7 +203,7 @@ BOOST_AUTO_TEST_CASE(copy_on_write_interface) {\n                       \"Default c'tor should be noexcept if the type is noexcept.\");\n         static_assert(!noexcept(copy_on_write<not_noexcept_ctor>()),\n                       \"Default c'tor shouldn't be noexcept if the type's c'tor isn't.\");\n-        BOOST_CHECK_THROW([] { copy_on_write<not_noexcept_ctor> ctor_will_throw; }(),\n+        REQUIRE_THROWS_AS(([] { copy_on_write<not_noexcept_ctor> ctor_will_throw; }()),\n                           std::exception);\n     }\n \n@@ -214,8 +212,8 @@ BOOST_AUTO_TEST_CASE(copy_on_write_interface) {\n         copy_on_write<int> a;\n         copy_on_write<int> b;\n \n-        BOOST_CHECK_MESSAGE(a.identity(b), \"default construction error\");\n-        BOOST_CHECK_MESSAGE(a == 0, \"default construction error\");\n+        REQUIRE(a.identity(b));\n+        REQUIRE(a == 0);\n     }\n \n     {\n@@ -224,36 +222,36 @@ BOOST_AUTO_TEST_CASE(copy_on_write_interface) {\n         copy_on_write<std::pair<int, int>> b(10, 20);\n         copy_on_write<std::tuple<int, int, int>> c(10, 20, 30);\n \n-        BOOST_CHECK_MESSAGE(a == 10, \"value construction error\");\n-        BOOST_CHECK_MESSAGE((b == std::make_pair(10, 20)), \"value construction error\");\n-        BOOST_CHECK_MESSAGE((c == std::make_tuple(10, 20, 30)), \"value construction error\");\n+        REQUIRE(a == 10);\n+        REQUIRE((b == std::make_pair(10, 20)));\n+        REQUIRE((c == std::make_tuple(10, 20, 30)));\n     }\n \n     {\n         // copy construction\n         copy_on_write<int> a = 3;\n         auto b = copy(a);\n-        BOOST_CHECK_MESSAGE(a.identity(b), \"copy construction error\");\n-        BOOST_CHECK_MESSAGE(b == 3, \"copy construction error\");\n+        REQUIRE(a.identity(b));\n+        REQUIRE(b == 3);\n     }\n \n     {\n         // move construction\n         copy_on_write<int> a = 3;\n         copy_on_write<int> b = std::move(a);\n         a = 0;\n-        BOOST_CHECK_MESSAGE(!a.identity(b), \"move construction error\");\n-        BOOST_CHECK_MESSAGE(b == 3, \"move construction error\");\n-        BOOST_CHECK_MESSAGE(a == 0, \"move construction error\");\n+        REQUIRE(!a.identity(b));\n+        REQUIRE(b == 3);\n+        REQUIRE(a == 0);\n     }\n \n     {\n         // copy assignment\n         copy_on_write<int> a = 3;\n         copy_on_write<int> b;\n         b = a;\n-        BOOST_CHECK_MESSAGE(a.identity(b), \"copy assignment error\");\n-        BOOST_CHECK_MESSAGE(b == 3, \"copy assignment error\");\n+        REQUIRE(a.identity(b));\n+        REQUIRE(b == 3);\n     }\n \n     {\n@@ -262,58 +260,58 @@ BOOST_AUTO_TEST_CASE(copy_on_write_interface) {\n         copy_on_write<int> b;\n         b = std::move(a);\n         a = 0;\n-        BOOST_CHECK_MESSAGE(!a.identity(b), \"move assignment error\");\n-        BOOST_CHECK_MESSAGE(b == 3, \"move assignment error\");\n-        BOOST_CHECK_MESSAGE(a == 0, \"move assignment error\");\n+        REQUIRE(!a.identity(b));\n+        REQUIRE(b == 3);\n+        REQUIRE(a == 0);\n     }\n \n     {\n         // value assignment\n         copy_on_write<int> a;\n         a = 3;\n-        BOOST_CHECK_MESSAGE(a == 3, \"value assignment error\");\n+        REQUIRE(a == 3);\n     }\n \n     {\n         // write\n         copy_on_write<std::pair<int, int>> a(1, 2);\n         copy_on_write<std::pair<int, int>> b = a;\n-        BOOST_CHECK(a.identity(b));\n+        REQUIRE(a.identity(b));\n         a.write().first = 3;\n-        BOOST_CHECK(!a.identity(b));\n-        BOOST_CHECK(a == std::make_pair(3, 2));\n-        BOOST_CHECK(b == std::make_pair(1, 2));\n+        REQUIRE(!a.identity(b));\n+        REQUIRE(a == std::make_pair(3, 2));\n+        REQUIRE(b == std::make_pair(1, 2));\n     }\n \n     {\n         // read\n         copy_on_write<std::pair<int, int>> a(1, 2);\n-        BOOST_CHECK(a.read().first == 1 && a.read().second == 2);\n+        REQUIRE((a.read().first == 1 && a.read().second == 2));\n     }\n \n     {\n         // implicit conversion\n         copy_on_write<std::pair<int, int>> a(1, 2);\n         std::pair<int, int> b = a;\n-        BOOST_CHECK(b == std::make_pair(1, 2));\n+        REQUIRE(b == std::make_pair(1, 2));\n     }\n \n     {\n         // operator * and ->\n         copy_on_write<std::pair<int, int>> a(1, 2);\n-        BOOST_CHECK(a->first == 1 && a->second == 2);\n-        BOOST_CHECK((*a).first == 1 && (*a).second == 2);\n+        REQUIRE((a->first == 1 && a->second == 2));\n+        REQUIRE(((*a).first == 1 && (*a).second == 2));\n     }\n \n     {\n         // unique\n         copy_on_write<std::pair<int, int>> a(1, 2);\n-        BOOST_CHECK(a.unique());\n+        REQUIRE(a.unique());\n         {\n             auto b = copy(a);\n-            BOOST_CHECK(!a.unique() && !b.unique());\n+            REQUIRE((!a.unique() && !b.unique()));\n         }\n-        BOOST_CHECK(a.unique());\n+        REQUIRE(a.unique());\n     }\n \n     // identity (tested above)\n@@ -323,7 +321,7 @@ BOOST_AUTO_TEST_CASE(copy_on_write_interface) {\n         copy_on_write<int> a(1);\n         copy_on_write<int> b(2);\n         swap(a, b);\n-        BOOST_CHECK((a == 2) && (b == 1));\n+        REQUIRE(((a == 2) && (b == 1)));\n     }\n \n     // comparisons\n@@ -332,31 +330,31 @@ BOOST_AUTO_TEST_CASE(copy_on_write_interface) {\n         copy_on_write<int> b(1);\n         copy_on_write<int> c(2);\n \n-        BOOST_CHECK((a == b) && (a != c) && !(a == c) && !(a != b));\n-        BOOST_CHECK((a == 1) && (a != 2) && !(a == 2) && !(a != 1));\n-        BOOST_CHECK((1 == b) && (1 != c) && !(1 == c) && !(1 != b));\n+        REQUIRE(((a == b) && (a != c) && !(a == c) && !(a != b)));\n+        REQUIRE(((a == 1) && (a != 2) && !(a == 2) && !(a != 1)));\n+        REQUIRE(((1 == b) && (1 != c) && !(1 == c) && !(1 != b)));\n \n-        BOOST_CHECK(!(a < b) && (a < c));\n-        BOOST_CHECK(!(a < 1) && (a < 2));\n-        BOOST_CHECK(!(1 < 1) && (1 < 2));\n+        REQUIRE((!(a < b) && (a < c)));\n+        REQUIRE((!(a < 1) && (a < 2)));\n+        REQUIRE((!(1 < 1) && (1 < 2)));\n \n-        BOOST_CHECK(!(a > b) && (c > a));\n-        BOOST_CHECK(!(a > 1) && (c > 1));\n-        BOOST_CHECK(!(1 > b) && (2 > a));\n+        REQUIRE((!(a > b) && (c > a)));\n+        REQUIRE((!(a > 1) && (c > 1)));\n+        REQUIRE((!(1 > b) && (2 > a)));\n \n-        BOOST_CHECK((a <= b) && !(c <= a));\n-        BOOST_CHECK((a <= 1) && !(c <= 1));\n-        BOOST_CHECK((1 <= b) && !(2 <= a));\n+        REQUIRE(((a <= b) && !(c <= a)));\n+        REQUIRE(((a <= 1) && !(c <= 1)));\n+        REQUIRE(((1 <= b) && !(2 <= a)));\n \n-        BOOST_CHECK((a >= b) && !(a >= c));\n-        BOOST_CHECK((a >= 1) && !(a >= 2));\n-        BOOST_CHECK((1 >= b) && !(1 >= c));\n+        REQUIRE(((a >= b) && !(a >= c)));\n+        REQUIRE(((a >= 1) && !(a >= 2)));\n+        REQUIRE(((1 >= b) && !(1 >= c)));\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(copy_on_write_test) {\n+TEST_CASE(\"copy_on_write_test\") {\n     // test nonmovable type with capture_allocator\n     test_copy_on_write<stlab::copy_on_write<int>>();\n "},{"sha":"0de3accd5bc475cfac59ca14b275cd8535bb8e1d","filename":"test/executor_test.cpp","status":"modified","additions":11,"deletions":21,"changes":32,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fexecutor_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fexecutor_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fexecutor_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -16,7 +16,7 @@\n #include <thread>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n using namespace stlab;\n using namespace std;\n@@ -25,9 +25,7 @@ namespace {\n void rest() { std::this_thread::sleep_for(std::chrono::milliseconds(1)); }\n } // namespace\n \n-BOOST_AUTO_TEST_CASE(all_low_prio_tasks_are_executed) {\n-    BOOST_TEST_MESSAGE(\"All low priority tasks are executed\");\n-\n+TEST_CASE(\"all_low_prio_tasks_are_executed\") {\n     serial_queue_t queue(low_executor);\n     mutex m;\n     vector<int> results;\n@@ -46,13 +44,11 @@ BOOST_AUTO_TEST_CASE(all_low_prio_tasks_are_executed) {\n     }\n \n     for (auto i = 0; i < 10; ++i) {\n-        BOOST_REQUIRE_EQUAL(i, results[i]);\n+        REQUIRE(results[i] == i);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(all_default_prio_tasks_get_executed) {\n-    BOOST_TEST_MESSAGE(\"All default priority tasks are executed\");\n-\n+TEST_CASE(\"all_default_prio_tasks_get_executed\") {\n     serial_queue_t queue(default_executor);\n     mutex m;\n     vector<int> results;\n@@ -71,13 +67,11 @@ BOOST_AUTO_TEST_CASE(all_default_prio_tasks_get_executed) {\n     }\n \n     for (auto i = 0; i < 10; ++i) {\n-        BOOST_REQUIRE_EQUAL(i, results[i]);\n+        REQUIRE(results[i] == i);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(all_high_prio_tasks_get_executed) {\n-    BOOST_TEST_MESSAGE(\"All high priority tasks are executed\");\n-\n+TEST_CASE(\"all_high_prio_tasks_get_executed\") {\n     serial_queue_t queue(high_executor);\n     mutex m;\n     vector<int> results;\n@@ -96,13 +90,11 @@ BOOST_AUTO_TEST_CASE(all_high_prio_tasks_get_executed) {\n     }\n \n     for (auto i = 0; i < 10; ++i) {\n-        BOOST_REQUIRE_EQUAL(i, results[i]);\n+        REQUIRE(results[i] == i);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(task_system_restarts_after_it_went_pending) {\n-    BOOST_TEST_MESSAGE(\"The task system restarts after it went to pending\");\n-\n+TEST_CASE(\"task_system_restarts_after_it_went_pending\") {\n     bool done{false};\n     mutex m;\n     condition_variable cv;\n@@ -135,7 +127,7 @@ BOOST_AUTO_TEST_CASE(task_system_restarts_after_it_went_pending) {\n         invoke_waiting([&] { cv.wait(block, [&] { return !done; }); });\n     }\n \n-    BOOST_REQUIRE(!done);\n+    REQUIRE(!done);\n }\n \n // REVISIT (sean-parent) - These tests is disabled because boost multi-precision is generated\n@@ -213,9 +205,7 @@ struct check_task {\n };\n } // namespace\n \n-BOOST_AUTO_TEST_CASE(all_tasks_will_be_executed_according_to_their_prio) {\n-    BOOST_TEST_MESSAGE(\"All tasks will be executed according to their prio\");\n-\n+TEST_CASE(\"all_tasks_will_be_executed_according_to_their_prio\") {\n     auto start = chrono::high_resolution_clock::now();\n \n     for (auto i = 0; i < startCount; ++i) {\n@@ -241,7 +231,7 @@ BOOST_AUTO_TEST_CASE(all_tasks_will_be_executed_according_to_their_prio) {\n          << static_cast<double>(correctHigh.load()) / iterations * 100.0 << \"%\\n\";\n }\n \n-BOOST_AUTO_TEST_CASE(MeasureTiming) {\n+TEST_CASE(\"MeasureTiming\") {\n     std::vector<int> results;\n     const auto iterations = 10'000;\n     results.resize(iterations * 3);"},{"sha":"2502659f6dd752311a27449397f487449276d724","filename":"test/forest_test.cpp","status":"modified","additions":80,"deletions":117,"changes":197,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fforest_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fforest_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fforest_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -3,12 +3,11 @@\n // stdc++\n #include <cassert>\n #include <cstddef>\n-#include <iostream>\n #include <iterator>\n #include <optional>\n \n // boost\n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n // stlab\n #include <stlab/forest.hpp>\n@@ -24,65 +23,29 @@ using namespace stlab;\n \n /**************************************************************************************************/\n \n-namespace {\n-\n-/**************************************************************************************************/\n-\n-template <typename T>\n-void print(const forest<T>& f) {\n-    auto first{f.begin()};\n-    auto last{f.end()};\n-    std::size_t depth{0};\n-\n-    while (first != last) {\n-        if (is_trailing(first)) {\n-            --depth;\n-        }\n-\n-        for (std::size_t i{0}; i < depth; ++i)\n-            std::cout << \"    \";\n-\n-        if (is_leading(first)) {\n-            std::cout << \"<\";\n-            ++depth;\n-        } else {\n-            std::cout << \"</\";\n-        }\n-\n-        std::cout << *first << \">\\n\";\n-        ++first;\n-    }\n-}\n-\n-/**************************************************************************************************/\n-\n-} // namespace\n-\n-/**************************************************************************************************/\n-\n-BOOST_AUTO_TEST_CASE(empty_forest) {\n+TEST_CASE(\"empty_forest\") {\n     forest<int> f;\n-    BOOST_CHECK(f.empty());\n-    BOOST_CHECK(f.size() == 0);\n-    BOOST_CHECK(f.begin() == f.end());\n+    REQUIRE(f.empty());\n+    REQUIRE(f.size() == 0);\n+    REQUIRE(f.begin() == f.end());\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(single_node_forest) {\n+TEST_CASE(\"single_node_forest\") {\n     forest<int> f;\n \n     auto il = f.insert(f.end(), 42);\n-    BOOST_CHECK(il.edge() == forest_edge::leading);\n-    BOOST_CHECK(*il == 42);\n-    BOOST_CHECK(!f.empty());\n+    REQUIRE(il.edge() == forest_edge::leading);\n+    REQUIRE(*il == 42);\n+    REQUIRE(!f.empty());\n \n-    BOOST_CHECK(f.begin() != f.end());\n-    BOOST_CHECK(f.size() == 1);\n+    REQUIRE(f.begin() != f.end());\n+    REQUIRE(f.size() == 1);\n \n     auto it = trailing_of(il);\n-    BOOST_CHECK(it.edge() == forest_edge::trailing);\n-    BOOST_CHECK(*it == *il);\n+    REQUIRE(it.edge() == forest_edge::trailing);\n+    REQUIRE(*it == *il);\n }\n \n /**************************************************************************************************/\n@@ -110,13 +73,13 @@ auto big_test_forest() {\n     f.insert(d_iter, \"J\");\n     f.insert(d_iter, \"K\");\n \n-    BOOST_CHECK(f.size() == 11);\n+    REQUIRE(f.size() == 11);\n \n-    BOOST_CHECK(has_children(a_iter));\n-    BOOST_CHECK(has_children(b_iter));\n-    BOOST_CHECK(has_children(c_iter));\n-    BOOST_CHECK(has_children(d_iter));\n-    BOOST_CHECK(!has_children(e_iter));\n+    REQUIRE(has_children(a_iter));\n+    REQUIRE(has_children(b_iter));\n+    REQUIRE(has_children(c_iter));\n+    REQUIRE(has_children(d_iter));\n+    REQUIRE(!has_children(e_iter));\n \n     return f;\n }\n@@ -172,7 +135,7 @@ template <typename Iterator>\n void test_fullorder_traversal(const Iterator& first,\n                               const Iterator& last,\n                               const std::string& expected) {\n-    BOOST_CHECK(to_string(first, last) == expected);\n+    REQUIRE(to_string(first, last) == expected);\n }\n \n /**************************************************************************************************/\n@@ -188,14 +151,14 @@ auto test_edge_traversal(Forest& f, const Iterator& fi, const Iterator& li) {\n             if (first.edge() == Edge) expected += *first;\n             ++first;\n         }\n-        BOOST_CHECK(expected.size() == f.size());\n+        REQUIRE(expected.size() == f.size());\n     }\n \n     {\n         edge_iterator<Iterator, Edge> first(fi);\n         edge_iterator<Iterator, Edge> last(li);\n         std::string result{to_string(first, last)};\n-        BOOST_CHECK(result == expected);\n+        REQUIRE(result == expected);\n     }\n \n     return expected;\n@@ -214,7 +177,7 @@ using const_reverse_iterator_t = forest<std::string>::const_reverse_iterator;\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(forward_traversal) {\n+TEST_CASE(\"forward_traversal\") {\n     auto f{big_test_forest()};\n     auto first{std::begin(f)};\n     auto last{std::end(f)};\n@@ -225,28 +188,28 @@ BOOST_AUTO_TEST_CASE(forward_traversal) {\n         test_fullorder_traversal<const_iterator_t>(first, last, expected);\n \n #if 0 // fullorder_range doesn't exist?\n-        BOOST_CHECK(range_value(fullorder_range(f)) == expected);\n+        REQUIRE(range_value(fullorder_range(f)) == expected);\n #endif\n     }\n \n     /*preorder*/ {\n         auto a = test_edge_traversal<iterator_t, forest_edge::leading>(f, first, last);\n         auto b = test_edge_traversal<const_iterator_t, forest_edge::leading>(f, first, last);\n-        BOOST_CHECK(a == b);\n-        BOOST_CHECK(to_string(preorder_range(f)) == a);\n+        REQUIRE(a == b);\n+        REQUIRE(to_string(preorder_range(f)) == a);\n     }\n \n     /*postorder*/ {\n         auto a = test_edge_traversal<iterator_t, forest_edge::trailing>(f, first, last);\n         auto b = test_edge_traversal<const_iterator_t, forest_edge::trailing>(f, first, last);\n-        BOOST_CHECK(a == b);\n-        BOOST_CHECK(to_string(postorder_range(f)) == a);\n+        REQUIRE(a == b);\n+        REQUIRE(to_string(postorder_range(f)) == a);\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(reverse_traversal) {\n+TEST_CASE(\"reverse_traversal\") {\n     auto f{big_test_forest()};\n     auto rfirst{std::rbegin(f)};\n     auto rlast{std::rend(f)};\n@@ -255,21 +218,21 @@ BOOST_AUTO_TEST_CASE(reverse_traversal) {\n         static const auto expected{\"ABEEDKKJJIIDCHHGGFFCBA\"};\n         test_fullorder_traversal<reverse_iterator_t>(rfirst, rlast, expected);\n         test_fullorder_traversal<const_reverse_iterator_t>(rfirst, rlast, expected);\n-        BOOST_CHECK(to_string(reverse_fullorder_range(f)) == expected);\n+        REQUIRE(to_string(reverse_fullorder_range(f)) == expected);\n     }\n \n     /*preorder*/ {\n         auto a = test_edge_traversal<reverse_iterator_t, forest_edge::leading>(f, rfirst, rlast);\n         auto b =\n             test_edge_traversal<const_reverse_iterator_t, forest_edge::leading>(f, rfirst, rlast);\n-        BOOST_CHECK(a == b);\n+        REQUIRE(a == b);\n     }\n \n     /*postorder*/ {\n         auto a = test_edge_traversal<reverse_iterator_t, forest_edge::trailing>(f, rfirst, rlast);\n         auto b =\n             test_edge_traversal<const_reverse_iterator_t, forest_edge::trailing>(f, rfirst, rlast);\n-        BOOST_CHECK(a == b);\n+        REQUIRE(a == b);\n     }\n }\n \n@@ -282,181 +245,181 @@ auto find_node(Forest& f, const T& x) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(child_traversal) {\n+TEST_CASE(\"child_traversal\") {\n     auto f{big_test_forest()};\n     auto parent{find_node(f, \"B\")};\n     std::string expected;\n \n-    BOOST_CHECK(*parent == \"B\");\n+    REQUIRE(*parent == \"B\");\n \n     {\n         auto first{child_begin(parent)};\n         auto last{child_end(parent)};\n         expected = to_string(first, last);\n     }\n \n-    BOOST_CHECK(to_string(child_range(parent)) == expected);\n+    REQUIRE(to_string(child_range(parent)) == expected);\n \n #if 0\n         // I'm not sure reverse_child_iterator ever worked.\n         forest<std::string>::reverse_child_iterator first{child_begin(parent)};\n         forest<std::string>::reverse_child_iterator last{child_end(parent)};\n         std::string result{to_string(first, last)};\n-        BOOST_CHECK(result == expected);\n+        REQUIRE(result == expected);\n #endif\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(test_find_parent) {\n+TEST_CASE(\"test_find_parent\") {\n     auto f{big_test_forest()};\n \n     {\n         auto child{find_node(f, \"B\")};\n-        BOOST_CHECK(*child == \"B\");\n+        REQUIRE(*child == \"B\");\n         auto parent{find_parent(child)};\n-        BOOST_CHECK(*parent == \"A\");\n+        REQUIRE(*parent == \"A\");\n     }\n \n     {\n         auto child{find_node(f, \"J\")};\n-        BOOST_CHECK(*child == \"J\");\n+        REQUIRE(*child == \"J\");\n         auto parent{find_parent(child)};\n-        BOOST_CHECK(*parent == \"D\");\n+        REQUIRE(*parent == \"D\");\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(test_has_children) {\n+TEST_CASE(\"test_has_children\") {\n     auto f{big_test_forest()};\n \n     /*pass*/ {\n         auto node{find_node(f, \"B\")};\n-        BOOST_CHECK(*node == \"B\");\n-        BOOST_CHECK(has_children(node));\n+        REQUIRE(*node == \"B\");\n+        REQUIRE(has_children(node));\n     }\n \n     /*fail*/ {\n         auto node{find_node(f, \"J\")};\n-        BOOST_CHECK(*node == \"J\");\n-        BOOST_CHECK(!has_children(node));\n+        REQUIRE(*node == \"J\");\n+        REQUIRE(!has_children(node));\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(erase) {\n+TEST_CASE(\"erase\") {\n     auto f{big_test_forest()};\n \n     /*single node*/ {\n         auto node{find_node(f, \"J\")};\n-        BOOST_CHECK(*node == \"J\");\n+        REQUIRE(*node == \"J\");\n         auto erased_result = f.erase(node);\n         std::string result{to_string(preorder_range(f))};\n-        BOOST_CHECK(result == \"ABCFGHDIKE\");\n-        BOOST_CHECK(*erased_result == \"K\");\n+        REQUIRE(result == \"ABCFGHDIKE\");\n+        REQUIRE(*erased_result == \"K\");\n     }\n \n     /*multiple nodes*/ {\n         auto node{find_node(f, \"D\")};\n-        BOOST_CHECK(*node == \"D\");\n+        REQUIRE(*node == \"D\");\n         auto erased_result = f.erase(leading_of(node), std::next(trailing_of(node)));\n         std::string result{to_string(preorder_range(f))};\n-        BOOST_CHECK(result == \"ABCFGHE\");\n-        BOOST_CHECK(*erased_result == \"E\");\n+        REQUIRE(result == \"ABCFGHE\");\n+        REQUIRE(*erased_result == \"E\");\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(construction) {\n+TEST_CASE(\"construction\") {\n     auto f{big_test_forest()};\n \n     /* copy construction */ {\n         auto f2{copy(f)};\n-        BOOST_CHECK(f2 == f);\n+        REQUIRE(f2 == f);\n     }\n \n     /* move construction */ {\n         auto f_size{f.size()};\n         auto f2 = std::move(f);\n-        BOOST_CHECK(f2 != f);\n-        BOOST_CHECK(f2.size() == f_size);\n+        REQUIRE(f2 != f);\n+        REQUIRE(f2.size() == f_size);\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(assignment) {\n+TEST_CASE(\"assignment\") {\n     auto f{big_test_forest()};\n \n     /* copy assignment */ {\n         decltype(f) f2;\n-        BOOST_CHECK(f2.empty());\n+        REQUIRE(f2.empty());\n         f2 = f;\n-        BOOST_CHECK(f2 == f);\n+        REQUIRE(f2 == f);\n     }\n \n     /* move assignment */ {\n         auto f_size{f.size()};\n         decltype(f) f2;\n         f2 = std::move(f);\n-        BOOST_CHECK(f2 != f);\n-        BOOST_CHECK(f2.size() == f_size);\n+        REQUIRE(f2 != f);\n+        REQUIRE(f2.size() == f_size);\n     }\n \n     /* self-move assignment */ {\n         f = big_test_forest();\n         auto* pf{&f}; // We use a pointer here to get around a clang error when moving to self.\n         auto f_size{f.size()};\n         f = std::move(*pf);\n-        BOOST_CHECK(f.size() == f_size);\n+        REQUIRE(f.size() == f_size);\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(swap) {\n+TEST_CASE(\"swap\") {\n     auto f1{big_test_forest()};\n     auto f2{f1};\n     f2.pop_back();\n     f2.pop_front();\n     auto f1_sz{f1.size()};\n     auto f2_sz{f2.size()};\n \n-    BOOST_CHECK(f1_sz != f2_sz);\n-    BOOST_CHECK(f1 != f2);\n+    REQUIRE(f1_sz != f2_sz);\n+    REQUIRE(f1 != f2);\n \n     std::swap(f1, f2);\n \n-    BOOST_CHECK(f2.size() == f1_sz);\n-    BOOST_CHECK(f1.size() == f2_sz);\n+    REQUIRE(f2.size() == f1_sz);\n+    REQUIRE(f1.size() == f2_sz);\n \n     f1.swap(f2);\n \n-    BOOST_CHECK(f1.size() == f1_sz);\n-    BOOST_CHECK(f2.size() == f2_sz);\n+    REQUIRE(f1.size() == f1_sz);\n+    REQUIRE(f2.size() == f2_sz);\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(test_equal_shape) {\n+TEST_CASE(\"test_equal_shape\") {\n     auto f1{big_test_forest()};\n     auto f2{f1};\n \n     for (auto& x : preorder_range(f2)) {\n         x = \"X\";\n     }\n \n-    BOOST_CHECK(f1 != f2);\n-    BOOST_CHECK(forests::equal_shape(f1, f2));\n-    BOOST_CHECK(to_string(f2) == \"XXXXXXXXXXXXXXXXXXXXXX\");\n+    REQUIRE(f1 != f2);\n+    REQUIRE(forests::equal_shape(f1, f2));\n+    REQUIRE(to_string(f2) == \"XXXXXXXXXXXXXXXXXXXXXX\");\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(test_transcribe_forest) {\n+TEST_CASE(\"test_transcribe_forest\") {\n     auto f1{big_test_forest()};\n     stlab::forest<std::size_t> f2;\n \n@@ -465,25 +428,25 @@ BOOST_AUTO_TEST_CASE(test_transcribe_forest) {\n         return static_cast<std::size_t>(x.front());\n     });\n \n-    BOOST_CHECK(forests::equal_shape(f1, f2));\n-    BOOST_CHECK(to_string(f2) == \"65666770707171727267687373747475756869696665\");\n+    REQUIRE(forests::equal_shape(f1, f2));\n+    REQUIRE(to_string(f2) == \"65666770707171727267687373747475756869696665\");\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(test_flatten) {\n+TEST_CASE(\"test_flatten\") {\n     auto f1{big_test_forest()};\n     std::vector<std::optional<std::string>> flat;\n \n     forests::flatten(f1.begin(), f1.end(), std::back_inserter(flat));\n \n-    BOOST_CHECK(to_string(flat) == \"ABCF?G?H??DI?J?K??E???\");\n+    REQUIRE(to_string(flat) == \"ABCF?G?H??DI?J?K??E???\");\n \n     decltype(f1) f2;\n \n     forests::unflatten(flat.begin(), flat.end(), f2);\n \n-    BOOST_CHECK(f1 == f2);\n+    REQUIRE(f1 == f2);\n }\n \n /**************************************************************************************************/"},{"sha":"1a885fbadda47881e725a2d340ad1f137b0d0d49","filename":"test/future_coroutine_tests.cpp","status":"modified","additions":131,"deletions":43,"changes":174,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_coroutine_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_coroutine_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_coroutine_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -8,16 +8,15 @@\n \n #include <atomic>\n #include <chrono>\n-#include <iostream>\n-#include <string>\n #include <thread>\n #include <utility>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n #include <stlab/concurrency/future.hpp>\n+#include <stlab/concurrency/ready_future.hpp>\n #include <stlab/test/model.hpp>\n \n #include \"future_test_helper.hpp\"\n@@ -27,83 +26,61 @@ using namespace future_test_helper;\n \n auto get_the_answer() -> stlab::future<int> { co_return 42; }\n \n-BOOST_AUTO_TEST_CASE(future_coroutine_int) {\n-    BOOST_TEST_MESSAGE(\"future coroutine int\");\n-\n+TEST_CASE(\"future_coroutine_int\") {\n     auto w = get_the_answer();\n \n-    BOOST_REQUIRE(42 == await(std::move(w)));\n+    REQUIRE(42 == await(std::move(w)));\n }\n \n auto get_move_only_answer() -> stlab::future<move_only> { co_return move_only{42}; }\n \n-BOOST_AUTO_TEST_CASE(future_coroutine_move_only) {\n-    BOOST_TEST_MESSAGE(\"future coroutine move only\");\n-\n+TEST_CASE(\"future_coroutine_move_only\") {\n     auto w = get_move_only_answer();\n     auto r = await(std::move(w));\n \n-    BOOST_REQUIRE(42 == r.member());\n+    REQUIRE(42 == r.member());\n }\n \n auto just_wait() -> stlab::future<void> { co_return; }\n \n-BOOST_AUTO_TEST_CASE(future_coroutine_void) {\n-    BOOST_TEST_MESSAGE(\"future coroutine void\");\n-\n+TEST_CASE(\"future_coroutine_void\") {\n     auto w = just_wait();\n \n-    BOOST_REQUIRE_NO_THROW(await(std::move(w)));\n+    REQUIRE_NOTHROW(await(std::move(w)));\n }\n \n auto get_the_answer_with_failure() -> stlab::future<int> {\n-    (void)co_await stlab::async(stlab::default_executor, [] {\n+    co_return co_await stlab::async(stlab::default_executor, []() -> int {\n         invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(1000)); });\n-        return 42;\n+        throw test_exception(\"failure\");\n     });\n-\n-    throw test_exception(\"failure\");\n }\n \n-BOOST_AUTO_TEST_CASE(future_coroutine_int_failure) {\n-    BOOST_TEST_MESSAGE(\"future coroutine int with failure\");\n-\n+TEST_CASE(\"future_coroutine_int_failure\") {\n     auto w = get_the_answer_with_failure();\n \n-    BOOST_REQUIRE_EXCEPTION(await(std::move(w)), test_exception,\n-                            ([_m = std::string(\"failure\")](const auto& e) {\n-                                return std::string(_m) == std::string(e.what());\n-                            }));\n+    REQUIRE_THROWS_WITH_AS(await(std::move(w)), \"failure\", test_exception);\n }\n \n auto get_the_answer_move_only_with_failure() -> stlab::future<move_only> {\n-    (void)co_await stlab::async(stlab::default_executor, [] {\n+    co_return co_await stlab::async(stlab::default_executor, []() -> move_only {\n         invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(1000)); });\n-        return move_only{42};\n+        throw test_exception(\"failure\");\n     });\n-    throw test_exception(\"failure\");\n }\n \n-BOOST_AUTO_TEST_CASE(future_coroutine_move_only_failure) {\n-    BOOST_TEST_MESSAGE(\"future coroutine move only with failure\");\n-\n+TEST_CASE(\"future_coroutine_move_only_failure\") {\n     auto w = get_the_answer_move_only_with_failure();\n \n-    BOOST_REQUIRE_EXCEPTION(await(std::move(w)), test_exception,\n-                            ([_m = std::string(\"failure\")](const auto& e) {\n-                                return std::string(_m) == std::string(e.what());\n-                            }));\n+    REQUIRE_THROWS_WITH_AS(await(std::move(w)), \"failure\", test_exception);\n }\n \n auto do_it(future<int> x, std::atomic_int& result) -> future<void> {\n-    int v = co_await x;\n-    result = v;\n-    std::cout << v << '\\n';\n+    result = co_await std::move(x);\n     co_return;\n }\n \n-BOOST_AUTO_TEST_CASE(future_coroutine_combined_void_int) {\n-    BOOST_TEST_MESSAGE(\"future coroutine combination of void and int future\");\n+TEST_CASE(\"future_coroutine_combined_void_int\") {\n     std::atomic_int intCheck{0};\n     std::atomic_bool boolCheck{false};\n \n@@ -112,6 +89,117 @@ BOOST_AUTO_TEST_CASE(future_coroutine_combined_void_int) {\n \n     await(std::move(hold));\n \n-    BOOST_REQUIRE_EQUAL(42, intCheck);\n-    BOOST_REQUIRE(boolCheck.load());\n+    REQUIRE(intCheck == 42);\n+    REQUIRE(boolCheck.load());\n+}\n+\n+auto resume_on_executor_coroutine(future<int> f,\n+                                  std::atomic_int& result,\n+                                  std::atomic_int* executor_usage_count) -> future<void> {\n+    int v = co_await resume_on(make_executor<0>(), std::move(f));\n+    result = v;\n+    if (executor_usage_count) *executor_usage_count = custom_scheduler<0>::usage_counter();\n+    co_return;\n+}\n+\n+TEST_CASE(\"resume_on_resumes_coroutine_on_given_executor\") {\n+    custom_scheduler<0>::reset();\n+    std::atomic_int result{0};\n+    std::atomic_int executor_usage_count{0};\n+\n+    auto fut = async(default_executor, [] { return 42; });\n+    auto done = resume_on_executor_coroutine(std::move(fut), result, &executor_usage_count);\n+    await(std::move(done));\n+\n+    REQUIRE(result == 42);\n+    REQUIRE(executor_usage_count.load() >= 1);\n+}\n+\n+namespace {\n+\n+future<int> resume_on_default_executor() {\n+    auto result = co_await async(default_executor, [] {\n+        std::this_thread::sleep_for(std::chrono::seconds(1));\n+        return 42;\n+    });\n+    co_return result;\n+}\n+\n+future<int> resume_on_with_explicit_resume_on() {\n+    auto result = co_await resume_on(default_executor, async(default_executor, [] {\n+                                         std::this_thread::sleep_for(std::chrono::seconds(1));\n+                                         return 42;\n+                                     }));\n+    co_return result;\n+}\n+\n+} // namespace\n+\n+TEST_CASE(\"resume_on_with_cancelled_future\") {\n+    {\n+        auto result(resume_on_default_executor());\n+        std::this_thread::sleep_for(std::chrono::milliseconds(500));\n+    }\n+}\n+\n+TEST_CASE(\"resume_on_explicit_with_cancelled_future\") {\n+    {\n+        auto result(resume_on_with_explicit_resume_on());\n+        std::this_thread::sleep_for(std::chrono::milliseconds(500));\n+    }\n+}\n+\n+TEST_CASE(\"resume_on_already_ready_future_resumes_on_executor\") {\n+    custom_scheduler<0>::reset();\n+    std::atomic_int result{0};\n+    std::atomic_int executor_usage_count{0};\n+\n+    auto fut = make_ready_future(43, default_executor);\n+    auto done = resume_on_executor_coroutine(std::move(fut), result, &executor_usage_count);\n+    await(std::move(done));\n+\n+    REQUIRE(result == 43);\n+    REQUIRE(executor_usage_count.load() >= 1);\n+}\n+\n+namespace {\n+\n+std::coroutine_handle<> g_escaped_handle;\n+\n+struct escape_awaitable {\n+    bool await_ready() const { return false; }\n+    void await_suspend(std::coroutine_handle<> ch) { g_escaped_handle = ch; }\n+    int await_resume() { return 0; }\n+};\n+\n+future<int> escape_handle_then_resume() {\n+    int x = co_await escape_awaitable{};\n+    co_return x + 42;\n+}\n+\n+} // namespace\n+\n+TEST_CASE(\"generic_await_escape_then_resume_after_future_reset\") {\n+    {\n+        auto f = escape_handle_then_resume();\n+        // Coroutine suspended at escape_awaitable; handle stored in global.\n+        REQUIRE(g_escaped_handle);\n+    }\n+    // Future destroyed; we gave up ownership so guard did not destroy the handle.\n+    REQUIRE(g_escaped_handle);\n+    g_escaped_handle.resume();\n+    // Coroutine completes; final_awaiter destroys the handle.\n+}\n+\n+TEST_CASE(\"throwing_operation_in_coawait_future\") {\n+    auto f = []() -> future<int> {\n+        try {\n+            co_await make_exceptional_future<void>(\n+                std::make_exception_ptr(test_exception(\"failure\")), default_executor);\n+        } catch (const test_exception&) {\n+            co_return 1;\n+        }\n+        co_return 0;\n+    }();\n+    REQUIRE(std::move(f).get_ready() == 1);\n }"},{"sha":"1058a34a63e3c8d0bbddf13bcc7bc2b3d137db8b","filename":"test/future_recover_tests.cpp","status":"modified","additions":191,"deletions":211,"changes":402,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_recover_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_recover_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_recover_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -10,7 +10,7 @@\n #include <mutex>\n #include <utility>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/executor_base.hpp>\n@@ -25,14 +25,17 @@ using namespace std;\n using namespace stlab;\n using namespace future_test_helper;\n \n+namespace {\n+int get_c0() { return custom_scheduler<0>::usage_counter(); }\n+int get_c1() { return custom_scheduler<1>::usage_counter(); }\n+} // namespace\n+\n // ----------------------------------------------------------------------------\n //                                  void\n // ----------------------------------------------------------------------------\n \n-BOOST_FIXTURE_TEST_SUITE(future_recover_void, test_fixture<void>)\n-BOOST_AUTO_TEST_CASE(future_recover_failure_before_recover_initialized_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\"running future recover, failure before recover initialized on r-value\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_recover_failure_before_recover_initialized_on_rvalue\") {\n     /*\n     combining the tests as in future_then_tests is not possible because of a bug in gcc\n \n@@ -57,8 +60,8 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_before_recover_initialized_on_rvalue\n         });\n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_GE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() >= 2);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -75,13 +78,14 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_before_recover_initialized_on_rvalue\n                });\n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_GE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_recover_failure_before_recover_initialized_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\"running future recover, failure before recover initialized on l-value\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_recover_failure_before_recover_initialized_on_lvalue\") {\n+    //\"running future recover, failure before recover initialized on l-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -98,8 +102,8 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_before_recover_initialized_on_lvalue\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 2);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -116,16 +120,14 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_before_recover_initialized_on_lvalue\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_failure_before_recover_initialized_with_custom_scheduler_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future recover, failure before recover initialized, with custom scheduler on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<void>,\n+    \"future_recover_failure_before_recover_initialized_with_custom_scheduler_on_rvalue\") {\n     {\n         auto error = false;\n \n@@ -138,9 +140,9 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -159,17 +161,15 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_failure_before_recover_initialized_with_custom_scheduler_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future recover, failure before recover initialized, with custom scheduler on l-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<void>,\n+    \"future_recover_failure_before_recover_initialized_with_custom_scheduler_on_lvalue\") {\n     {\n         auto error = false;\n         auto interim = async(make_executor<0>(), [&_error = error] {\n@@ -185,9 +185,9 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -208,14 +208,15 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_recover_failure_after_recover_initialized_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\"running future recover, failure after recover initialized on r-value\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_recover_failure_after_recover_initialized_on_rvalue\") {\n+    //\"running future recover, failure after recover initialized on r-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -235,8 +236,8 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_after_recover_initialized_on_rvalue)\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_GE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() >= 2);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -253,13 +254,14 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_after_recover_initialized_on_rvalue)\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_recover_failure_after_recover_initialized_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\"running future recover, failure after recover initialized on l-value\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_recover_failure_after_recover_initialized_on_lvalue\") {\n+    //\"running future recover, failure after recover initialized on l-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -280,8 +282,8 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_after_recover_initialized_on_lvalue)\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_GE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() >= 2);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -302,16 +304,14 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_after_recover_initialized_on_lvalue)\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_GE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_failure_after_recover_initialized_with_custom_scheduler_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future recover, failure after recover initialized with custom scheduler on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<void>,\n+    \"future_recover_failure_after_recover_initialized_with_custom_scheduler_on_rvalue\") {\n     {\n         auto error = false;\n         mutex block;\n@@ -329,9 +329,9 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -356,17 +356,15 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_failure_after_recover_initialized_with_custom_scheduler_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future recover, failure after recover initialized with custom scheduler on l-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<void>,\n+    \"future_recover_failure_after_recover_initialized_with_custom_scheduler_on_lvalue\") {\n     {\n         auto error = false;\n         mutex block;\n@@ -386,9 +384,9 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -413,14 +411,14 @@ BOOST_AUTO_TEST_CASE(\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_recover_failure_during_when_all_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\"running future recover while failed when_all on l-value\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_recover_failure_during_when_all_on_lvalue\") {\n+    //\"running future recover while failed when_all on l-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -439,7 +437,7 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_during_when_all_on_lvalue) {\n                   .then([&](int x) { result = x; });\n \n         wait_until_future_completed(std::move(sut));\n-        BOOST_REQUIRE_EQUAL(815, result);\n+        REQUIRE(result == 815);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -458,19 +456,18 @@ BOOST_AUTO_TEST_CASE(future_recover_failure_during_when_all_on_lvalue) {\n               [&](int x) { result = x; };\n \n         wait_until_future_completed(std::move(sut));\n-        BOOST_REQUIRE_EQUAL(815, result);\n+        REQUIRE(result == 815);\n     }\n }\n-BOOST_AUTO_TEST_SUITE_END()\n \n // ----------------------------------------------------------------------------\n //                             Copyable Values\n // ----------------------------------------------------------------------------\n \n-BOOST_FIXTURE_TEST_SUITE(future_recover_int, test_fixture<int>)\n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_before_recover_initialized_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\"running future int recover, failure before recover initialized on r-value\");\n+TEST_CASE_FIXTURE(\n+    test_fixture<int>,\n+    \"future_recover_int_simple_recover_failure_before_recover_initialized_on_rvalue\") {\n+    //\"running future int recover, failure before recover initialized on r-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -486,8 +483,8 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -505,14 +502,15 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_before_recover_initialized_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\"running future int recover, failure before recover initialized on l-value\");\n+TEST_CASE_FIXTURE(\n+    test_fixture<int>,\n+    \"future_recover_int_simple_recover_failure_before_recover_initialized_on_lvalue\") {\n+    //\"running future int recover, failure before recover initialized on l-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -529,8 +527,8 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -547,14 +545,14 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_after_recover_initialized_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\"running future int recover, failure after recover initialized on r-value\");\n+TEST_CASE_FIXTURE(test_fixture<int>,\n+                  \"future_recover_int_simple_recover_failure_after_recover_initialized_on_rvalue\") {\n+    //\"running future int recover, failure after recover initialized on r-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -576,8 +574,8 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -601,14 +599,14 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_after_recover_initialized_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\"running future int recover, failure after recover initialized on l-value\");\n+TEST_CASE_FIXTURE(test_fixture<int>,\n+                  \"future_recover_int_simple_recover_failure_after_recover_initialized_on_lvalue\") {\n+    //\"running future int recover, failure after recover initialized on l-value\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -632,8 +630,8 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -657,16 +655,14 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_before_recover_initialized_with_custom_scheduler_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future int recover, failure before recover initialized with custom scheduler on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<int>,\n+    \"future_recover_int_simple_recover_failure_before_recover_initialized_with_custom_scheduler_on_rvalue\") {\n     {\n         auto error = false;\n \n@@ -680,10 +676,10 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -704,18 +700,16 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_before_recover_initialized_with_custom_scheduler_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future int recover, failure before recover initialized with custom scheduler on l-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<int>,\n+    \"future_recover_int_simple_recover_failure_before_recover_initialized_with_custom_scheduler_on_lvalue\") {\n     {\n         auto error = false;\n         auto interim = async(make_executor<0>(), [&_error = error]() -> int {\n@@ -732,10 +726,10 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -757,18 +751,16 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_after_recover_initialized_with_custom_scheduler_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future int recover, failure after recover initialized with custom scheduler on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<int>,\n+    \"future_recover_int_simple_recover_failure_after_recover_initialized_with_custom_scheduler_on_rvalue\") {\n     {\n         auto error = false;\n         mutex block;\n@@ -788,10 +780,10 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -818,18 +810,16 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_int_simple_recover_failure_after_recover_initialized_with_custom_scheduler_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future int recover, failure after recover initialized with custom scheduler on l-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<int>,\n+    \"future_recover_int_simple_recover_failure_after_recover_initialized_with_custom_scheduler_on_lvalue\") {\n     {\n         auto error = false;\n         mutex block;\n@@ -850,10 +840,10 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -879,15 +869,15 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result);\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_recover_int_with_broken_promise) {\n-    BOOST_TEST_MESSAGE(\"running future int recover with broken promise\");\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_recover_int_with_broken_promise\") {\n+    //\"running future int recover with broken promise\");\n \n     {\n         auto check{false};\n@@ -904,7 +894,7 @@ BOOST_AUTO_TEST_CASE(future_recover_int_with_broken_promise) {\n         }();\n \n         check_failure<future_error>(sut, \"broken promise\");\n-        BOOST_REQUIRE(check);\n+        REQUIRE(check);\n     }\n     {\n         auto check{false};\n@@ -921,22 +911,17 @@ BOOST_AUTO_TEST_CASE(future_recover_int_with_broken_promise) {\n         }();\n \n         check_failure<future_error>(sut, \"broken promise\");\n-        BOOST_REQUIRE(check);\n+        REQUIRE(check);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n // ----------------------------------------------------------------------------\n //                             Move-only values\n // ----------------------------------------------------------------------------\n \n-BOOST_FIXTURE_TEST_SUITE(future_recover_move_only_type, test_fixture<move_only>)\n-BOOST_AUTO_TEST_CASE(\n-    future_recover_move_only_type_recover_failure_before_recover_initialized_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future move only type recover, failure before recover initialized on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<move_only>,\n+    \"future_recover_move_only_type_recover_failure_before_recover_initialized_on_rvalue\") {\n     {\n         custom_scheduler<0>::reset();\n         auto error = false;\n@@ -951,8 +936,8 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -970,13 +955,14 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_recover_move_only_types_recover_failure_after_recover_initialized) {\n-    BOOST_TEST_MESSAGE(\"running future move only type recover, failure after recover initialized\");\n+TEST_CASE_FIXTURE(test_fixture<move_only>,\n+                  \"future_recover_move_only_types_recover_failure_after_recover_initialized\") {\n+    //\"running future move only type recover, failure after recover initialized\");\n \n     {\n         custom_scheduler<0>::reset();\n@@ -997,8 +983,8 @@ BOOST_AUTO_TEST_CASE(future_recover_move_only_types_recover_failure_after_recove\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -1021,16 +1007,14 @@ BOOST_AUTO_TEST_CASE(future_recover_move_only_types_recover_failure_after_recove\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_move_only_type_recover_failure_before_recover_initialized_with_custom_scheduler_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future move only type recover, failure before recover initialized with custom scheduler on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<move_only>,\n+    \"future_recover_move_only_type_recover_failure_before_recover_initialized_with_custom_scheduler_on_rvalue\") {\n     {\n         auto error = false;\n \n@@ -1044,10 +1028,10 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -1068,18 +1052,16 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_recover_move_only_types_recover_failure_after_recover_initialized_with_custom_scheduler_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future move only type recover, failure after recover initialized with custom scheduler on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<move_only>,\n+    \"future_recover_move_only_types_recover_failure_after_recover_initialized_with_custom_scheduler_on_rvalue\") {\n     {\n         auto error = false;\n         mutex block;\n@@ -1097,10 +1079,10 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -1125,15 +1107,15 @@ BOOST_AUTO_TEST_CASE(\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE(error);\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_GE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(error);\n+        REQUIRE(get_c0() == 1);\n+        REQUIRE(get_c1() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_recover_move_only_with_broken_promise) {\n-    BOOST_TEST_MESSAGE(\"running future move-only recover with broken promise\");\n+TEST_CASE_FIXTURE(test_fixture<move_only>, \"future_recover_move_only_with_broken_promise\") {\n+    //\"running future move-only recover with broken promise\");\n \n     {\n         auto check{false};\n@@ -1151,7 +1133,7 @@ BOOST_AUTO_TEST_CASE(future_recover_move_only_with_broken_promise) {\n         }();\n \n         check_failure<future_error>(sut, \"broken promise\");\n-        BOOST_REQUIRE(check);\n+        REQUIRE(check);\n     }\n     {\n         auto check{false};\n@@ -1169,8 +1151,6 @@ BOOST_AUTO_TEST_CASE(future_recover_move_only_with_broken_promise) {\n         }();\n \n         check_failure<future_error>(sut, \"broken promise\");\n-        BOOST_REQUIRE(check);\n+        REQUIRE(check);\n     }\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"dbc320c00a0ca916df1616c54e16212f149f65f1","filename":"test/future_reduction_tests.cpp","status":"modified","additions":3,"deletions":7,"changes":10,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_reduction_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_reduction_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_reduction_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -6,20 +6,16 @@\n \n /**************************************************************************************************/\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/future.hpp>\n #include <stlab/concurrency/immediate_executor.hpp>\n #include <stlab/concurrency/ready_future.hpp>\n \n using namespace stlab;\n \n-BOOST_AUTO_TEST_SUITE(reduction_tests)\n-\n-BOOST_AUTO_TEST_CASE(void_void_reduction) {\n+TEST_CASE(\"void_void_reduction\") {\n     auto f = make_ready_future(immediate_executor) |\n              [] { return make_ready_future(immediate_executor); };\n-    BOOST_REQUIRE(!f.exception());\n+    REQUIRE(!f.exception());\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"76e3be7cbdc1137d14849fa9c8bef42b382b69d5","filename":"test/future_test_helper.cpp","status":"removed","additions":0,"deletions":26,"changes":26,"blob_url":"https://github.com/stlab/stlab/blob/4fef5be97701b4bd6938b833bb9db7ee7f1325ad/test%2Ffuture_test_helper.cpp","raw_url":"https://github.com/stlab/stlab/raw/4fef5be97701b4bd6938b833bb9db7ee7f1325ad/test%2Ffuture_test_helper.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_test_helper.cpp?ref=4fef5be97701b4bd6938b833bb9db7ee7f1325ad","patch":"@@ -1,26 +0,0 @@\n-/*\n-    Copyright 2015 Adobe\n-    Distributed under the Boost Software License, Version 1.0.\n-    (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\n-*/\n-\n-/**************************************************************************************************/\n-\n-#include \"future_test_helper.hpp\"\n-\n-#if 0\n-#include <utility>\n-#include <string>\n-\n-namespace future_test_helper {\n-\n-test_exception::~test_exception() = default;\n-\n-test_exception::test_exception(std::string  error) : _error(std::move(error)) {}\n-\n-test_exception::test_exception(const char* error) : _error(error) {}\n-\n-auto test_exception::what() const noexcept -> const char* { return _error.c_str(); }\n-\n-} // namespace future_test_helper\n-#endif"},{"sha":"9af71ed46c281242a2322ae0e13e926a5609f91b","filename":"test/future_test_helper.hpp","status":"modified","additions":8,"deletions":10,"changes":18,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_test_helper.hpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_test_helper.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_test_helper.hpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -19,7 +19,7 @@\n #include <string>\n #include <thread>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n using lock_t = std::unique_lock<std::mutex>;\n \n@@ -30,17 +30,15 @@ void check_failure(F& f, const char* message) {\n #if 1\n     try {\n         (void)f.get_try();\n-        BOOST_FAIL(\"Expected exception was not thrown\");\n+        FAIL(\"Expected exception was not thrown\");\n \n     } catch (const std::exception& e) {\n-        BOOST_REQUIRE(typeid(E) == typeid(e));\n-        BOOST_REQUIRE_EQUAL(std::string(message), std::string(e.what()));\n+        REQUIRE(typeid(E) == typeid(e));\n+        REQUIRE(std::string(message) == std::string(e.what()));\n     }\n #else\n     // This version fails in CI with the XCode 16.4 runner. It appears to be a compiler bug.\n-    BOOST_REQUIRE_EXCEPTION((void)f.get_try(), E, ([_m = message](const auto& e) {\n-                                return std::string(_m) == std::string(e.what());\n-                            }));\n+    REQUIRE_THROWS_AS((void)f.get_try(), E);\n #endif\n }\n \n@@ -120,11 +118,11 @@ struct test_fixture {\n \n     void check_valid_future() {}\n \n-    void check_valid_future(const stlab::future<T>& f) { BOOST_REQUIRE(f.valid() == true); }\n+    void check_valid_future(const stlab::future<T>& f) { REQUIRE(f.valid() == true); }\n \n     template <typename F, typename... FS>\n     void check_valid_future(const F& f, const FS&... fs) {\n-        BOOST_REQUIRE(f.valid() == true);\n+        REQUIRE(f.valid() == true);\n         check_valid_future(fs...);\n     }\n \n@@ -155,7 +153,7 @@ struct test_fixture {\n             (void)stlab::await(std::forward<F>(f));\n         } catch (const E&) {\n         } catch (...) {\n-            BOOST_FAIL(\"Unexpected exception thrown in wait_until_this_future_fails\");\n+            FAIL(\"Unexpected exception thrown in wait_until_this_future_fails\");\n         }\n     }\n };"},{"sha":"17af48e67ce747941acb39ba0d95846c71fabd20","filename":"test/future_tests.cpp","status":"modified","additions":189,"deletions":216,"changes":405,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -13,12 +13,10 @@\n #include <iostream>\n #include <memory>\n #include <optional>\n-#include <string>\n #include <thread>\n #include <utility>\n \n-#include <boost/mpl/list.hpp>\n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -42,8 +40,8 @@ inline auto promise_future() {\n                          [](auto&& x) -> decltype(x) { return std::forward<decltype(x)>(x); });\n }\n \n-BOOST_AUTO_TEST_CASE(rvalue_through_continuation) {\n-    BOOST_TEST_MESSAGE(\"running passing rvalue to continuation\");\n+TEST_CASE(\"rvalue_through_continuation\") {\n+    //\"running passing rvalue to continuation\");\n \n     annotate_counters counters;\n \n@@ -54,291 +52,278 @@ BOOST_AUTO_TEST_CASE(rvalue_through_continuation) {\n     std::cout << counters;\n }\n \n-BOOST_AUTO_TEST_CASE(async_lambda_arguments) {\n+TEST_CASE(\"async_lambda_arguments\") {\n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type rvalue -> value\");\n+        //\"running async lambda argument of type rvalue -> value\");\n \n         annotate_counters counters;\n         (void)async(immediate_executor, [](const annotate&) {}, annotate(counters));\n-        BOOST_REQUIRE(counters.remaining() == 0);\n-        BOOST_REQUIRE(counters._copy_ctor == 0);\n+        REQUIRE(counters.remaining() == 0);\n+        REQUIRE(counters._copy_ctor == 0);\n     }\n \n #if 0\n     // These test disabled because clang-tidy insists on rewriting the by argument value to const&.\n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type lvalue -> value\");\n+        //\"running async lambda argument of type lvalue -> value\");\n \n         annotate_counters counters;\n         annotate const x(counters);\n         (void)async(immediate_executor, [](const annotate&) {}, x);\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 1);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 1);\n     }\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type ref -> value\");\n+        //\"running async lambda argument of type ref -> value\");\n \n         annotate_counters counters;\n         annotate x(counters);\n         (void)async(immediate_executor, [](const annotate&) {}, std::ref(x));\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 1);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 1);\n     }\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type cref -> value\");\n+        //\"running async lambda argument of type cref -> value\");\n \n         annotate_counters counters;\n         annotate const x(counters);\n         (void)async(immediate_executor, [](const annotate&) {}, std::cref(x));\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 1);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 1);\n     }\n #endif\n //-------\n #if 0\n     {\n     // EXPECTED WILL NOT COMPILE\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type rvalue -> &\");\n+        //\"running async lambda argument of type rvalue -> &\");\n \n         annotate_counters counters;\n         async(immediate_executor, [](annotate&){ }, annotate(counters));\n-        BOOST_REQUIRE(counters.remaining() == 0);\n-        BOOST_REQUIRE(counters._copy_ctor == 0);\n+        REQUIRE(counters.remaining() == 0);\n+        REQUIRE(counters._copy_ctor == 0);\n     }\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type lvalue -> &\");\n+        //\"running async lambda argument of type lvalue -> &\");\n \n         annotate_counters counters;\n         annotate x(counters);\n         async(immediate_executor, [](annotate&){ }, x);\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 1);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 1);\n     }\n #endif\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type ref -> &\");\n+        //\"running async lambda argument of type ref -> &\");\n \n         annotate_counters counters;\n         annotate x(counters);\n         (void)async(immediate_executor, [](annotate&) {}, std::ref(x));\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 0);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 0);\n     }\n \n #if 0\n     // EXPECTED WILL NOT COMPILE\n     {\n-    BOOST_TEST_MESSAGE(\"running async lambda argument of type cref -> &\");\n+    //\"running async lambda argument of type cref -> &\");\n \n     annotate_counters counters;\n     annotate x(counters);\n     async(immediate_executor, [](annotate&){ }, std::cref(x));\n-    BOOST_REQUIRE(counters.remaining() == 1);\n-    BOOST_REQUIRE(counters._copy_ctor == 1);\n+    REQUIRE(counters.remaining() == 1);\n+    REQUIRE(counters._copy_ctor == 1);\n     }\n #endif\n     //-------\n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type rvalue -> const&\");\n+        //\"running async lambda argument of type rvalue -> const&\");\n \n         annotate_counters counters;\n         (void)async(immediate_executor, [](const annotate&) {}, annotate(counters));\n-        BOOST_REQUIRE(counters.remaining() == 0);\n-        BOOST_REQUIRE(counters._copy_ctor == 0);\n+        REQUIRE(counters.remaining() == 0);\n+        REQUIRE(counters._copy_ctor == 0);\n     }\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type lvalue -> const&\");\n+        //\"running async lambda argument of type lvalue -> const&\");\n \n         annotate_counters counters;\n         annotate const x(counters);\n         (void)async(immediate_executor, [](const annotate&) {}, x);\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 1);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 1);\n     }\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type ref -> const&\");\n+        //\"running async lambda argument of type ref -> const&\");\n \n         annotate_counters counters;\n         annotate x(counters);\n         (void)async(immediate_executor, [](const annotate&) {}, std::ref(x));\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 0);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 0);\n     }\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type cref -> const&\");\n+        //\"running async lambda argument of type cref -> const&\");\n \n         annotate_counters counters;\n         annotate const x(counters);\n         (void)async(immediate_executor, [](const annotate&) {}, std::cref(x));\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 0);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 0);\n     }\n     //-------\n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type rvalue -> &&\");\n+        //\"running async lambda argument of type rvalue -> &&\");\n \n         annotate_counters counters;\n         (void)async(immediate_executor, [](annotate&&) {}, annotate(counters));\n-        BOOST_REQUIRE(counters.remaining() == 0);\n-        BOOST_REQUIRE(counters._copy_ctor == 0);\n+        REQUIRE(counters.remaining() == 0);\n+        REQUIRE(counters._copy_ctor == 0);\n     }\n \n     {\n-        BOOST_TEST_MESSAGE(\"running async lambda argument of type lvalue -> &&\");\n+        //\"running async lambda argument of type lvalue -> &&\");\n \n         annotate_counters counters;\n         annotate const x(counters);\n         (void)async(immediate_executor, [](annotate&&) {}, x);\n-        BOOST_REQUIRE(counters.remaining() == 1);\n-        BOOST_REQUIRE(counters._copy_ctor == 1);\n+        REQUIRE(counters.remaining() == 1);\n+        REQUIRE(counters._copy_ctor == 1);\n     }\n \n #if 0\n     // EXPECTED WILL NOT COMPILE\n     {\n-    BOOST_TEST_MESSAGE(\"running async lambda argument of type ref -> &&\");\n+    //\"running async lambda argument of type ref -> &&\");\n \n     annotate_counters counters;\n     annotate x(counters);\n     async(immediate_executor, [](annotate&&){ }, std::ref(x));\n-    BOOST_REQUIRE(counters.remaining() == 1);\n-    BOOST_REQUIRE(counters._copy_ctor == 0);\n+    REQUIRE(counters.remaining() == 1);\n+    REQUIRE(counters._copy_ctor == 0);\n     }\n \n     {\n-    BOOST_TEST_MESSAGE(\"running async lambda argument of type cref -> &&\");\n+    //\"running async lambda argument of type cref -> &&\");\n \n     annotate_counters counters;\n     annotate x(counters);\n     async(immediate_executor, [](annotate&&){ }, std::cref(x));\n-    BOOST_REQUIRE(counters.remaining() == 1);\n-    BOOST_REQUIRE(counters._copy_ctor == 0);\n+    REQUIRE(counters.remaining() == 1);\n+    REQUIRE(counters._copy_ctor == 0);\n     }\n #endif\n }\n \n /**************************************************************************************************/\n \n-using all_test_types = boost::mpl::list<void, int, stlab::move_only>;\n-\n-BOOST_AUTO_TEST_CASE_TEMPLATE(future_default_constructed, T, all_test_types) {\n-    BOOST_TEST_MESSAGE(\"running future default constructed of type \" << typeid(T).name());\n-\n+TEST_CASE_TEMPLATE(\"future_default_constructed\", T, void, int, stlab::move_only) {\n     auto sut = future<T>();\n-    BOOST_REQUIRE(sut.valid() == false);\n-    BOOST_REQUIRE(sut.is_ready() == false);\n+    REQUIRE(sut.valid() == false);\n+    REQUIRE(sut.is_ready() == false);\n }\n \n-using copyable_test_types = boost::mpl::list<int, double>;\n-\n-BOOST_AUTO_TEST_CASE_TEMPLATE(future_constructed_minimal_fn, T, copyable_test_types) {\n-    BOOST_TEST_MESSAGE(\"running future with minimal copyable type \" << typeid(T).name());\n-\n+TEST_CASE_TEMPLATE(\"future_constructed_minimal_fn\", T, int, double) {\n     test_setup const setup;\n     {\n         auto sut = async(make_executor<0>(), []() -> T { return T(0); });\n-        BOOST_REQUIRE(sut.valid() == true);\n+        REQUIRE(sut.valid() == true);\n \n         sut.reset();\n-        BOOST_REQUIRE(sut.valid() == false);\n-        BOOST_REQUIRE(sut.is_ready() == false);\n+        REQUIRE(sut.valid() == false);\n+        REQUIRE(sut.is_ready() == false);\n     }\n-    BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() == 1);\n }\n \n-BOOST_AUTO_TEST_CASE_TEMPLATE(future_constructed_minimal_fn_with_parameters,\n-                              T,\n-                              copyable_test_types) {\n-    BOOST_TEST_MESSAGE(\"running future with minimal copyable type and passed parameter \"\n-                       << typeid(T).name());\n-\n+TEST_CASE_TEMPLATE(\"future_constructed_minimal_fn_with_parameters\", T, int, double) {\n     test_setup const setup;\n     {\n         auto sut = async(make_executor<0>(), [](auto x) -> T { return x + T(0); }, T(42));\n-        BOOST_REQUIRE(sut.valid() == true);\n+        REQUIRE(sut.valid() == true);\n \n         auto result = await(std::move(sut));\n \n-        BOOST_WARN_EQUAL(T(42) + T(0), result);\n+        CHECK(result == T(42) + T(0));\n     }\n-    BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() == 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_constructed_minimal_fn_moveonly) {\n-    BOOST_TEST_MESSAGE(\"running future with move only type\");\n+TEST_CASE(\"future_constructed_minimal_fn_moveonly\") {\n+    //\"running future with move only type\");\n \n     test_setup const setup;\n     {\n         auto sut =\n             async(make_executor<0>(), []() -> stlab::move_only { return stlab::move_only{42}; });\n-        BOOST_REQUIRE(sut.valid() == true);\n+        REQUIRE(sut.valid() == true);\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n+        REQUIRE(result.member() == 42);\n     }\n-    BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() == 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_equality_tests) {\n-    BOOST_TEST_MESSAGE(\"running future equality tests\");\n+TEST_CASE(\"future_equality_tests\") {\n+    //\"running future equality tests\");\n     {\n         future<int> const a;\n         future<int> const b;\n-        BOOST_REQUIRE(a == b);\n-        BOOST_REQUIRE(!(a != b));\n+        REQUIRE(a == b);\n+        REQUIRE(!(a != b));\n     }\n \n     {\n         future<void> const a;\n         future<void> const b;\n-        BOOST_REQUIRE(a == b);\n-        BOOST_REQUIRE(!(a != b));\n+        REQUIRE(a == b);\n+        REQUIRE(!(a != b));\n     }\n \n     {\n         future<move_only> const a;\n         future<move_only> const b;\n-        BOOST_REQUIRE(a == b);\n-        BOOST_REQUIRE(!(a != b));\n+        REQUIRE(a == b);\n+        REQUIRE(!(a != b));\n     }\n \n     {\n         future<int> const a = async(default_executor, [] { return 42; });\n         const auto& b = a;\n-        BOOST_REQUIRE(a == b);\n+        REQUIRE(a == b);\n     }\n     {\n         future<void> const a = async(default_executor, [] {});\n         const auto& b = a;\n-        BOOST_REQUIRE(a == b);\n+        REQUIRE(a == b);\n     }\n \n     {\n         future<int> const a = async(default_executor, [] { return 42; });\n         future<int> const b = async(default_executor, [] { return 42; });\n-        BOOST_REQUIRE(a != b);\n+        REQUIRE(a != b);\n     }\n     {\n         future<void> const a = async(default_executor, [] {});\n         future<void> const b = async(default_executor, [] {});\n-        BOOST_REQUIRE(a != b);\n+        REQUIRE(a != b);\n     }\n     {\n         future<move_only> const a = async(default_executor, [] { return move_only(42); });\n         future<move_only> const b;\n-        BOOST_REQUIRE(a != b);\n+        REQUIRE(a != b);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_swap_tests) {\n+TEST_CASE(\"future_swap_tests\") {\n     {\n         auto a = package<int(int)>(immediate_executor, [](int a) { return a + 2; });\n         auto b = package<int(int)>(immediate_executor, [](int a) { return a + 4; });\n@@ -348,8 +333,8 @@ BOOST_AUTO_TEST_CASE(future_swap_tests) {\n         a.first(1);\n         b.first(2);\n \n-        BOOST_REQUIRE_EQUAL(5, *a.second.get_try());\n-        BOOST_REQUIRE_EQUAL(4, *b.second.get_try());\n+        REQUIRE(*a.second.get_try() == 5);\n+        REQUIRE(*b.second.get_try() == 4);\n     }\n     {\n         int x(0);\n@@ -362,8 +347,8 @@ BOOST_AUTO_TEST_CASE(future_swap_tests) {\n         a.first(1);\n         b.first(2);\n \n-        BOOST_REQUIRE_EQUAL(5, y);\n-        BOOST_REQUIRE_EQUAL(4, x);\n+        REQUIRE(y == 5);\n+        REQUIRE(x == 4);\n     }\n     {\n         auto a =\n@@ -376,16 +361,12 @@ BOOST_AUTO_TEST_CASE(future_swap_tests) {\n         a.first(1);\n         b.first(2);\n \n-        BOOST_REQUIRE_EQUAL(5, a.second.get_try()->member());\n-        BOOST_REQUIRE_EQUAL(4, b.second.get_try()->member());\n+        REQUIRE(a.second.get_try()->member() == 5);\n+        REQUIRE(b.second.get_try()->member() == 4);\n     }\n }\n \n-BOOST_FIXTURE_TEST_SUITE(future_then_void, test_fixture<int>)\n-\n-BOOST_AUTO_TEST_CASE(future_get_try_refref) {\n-    BOOST_TEST_MESSAGE(\"future get_try()&& accessor test\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_get_try_refref\") {\n     sut = async(default_executor, [] {\n               return 42;\n           }).then([](int) -> int {\n@@ -400,137 +381,128 @@ BOOST_AUTO_TEST_CASE(future_get_try_refref) {\n     });\n \n     wait_until_future_completed(copy(sut));\n-    BOOST_REQUIRE_EQUAL(42, *sut.get_try());\n+    REQUIRE(*sut.get_try() == 42);\n }\n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_AUTO_TEST_CASE(future_wait_copyable_value) {\n-    BOOST_TEST_MESSAGE(\"future wait with copyable value\");\n+TEST_CASE(\"future_wait_copyable_value\") {\n+    //\"future wait with copyable value\");\n     auto answer = [] { return 42; };\n \n     stlab::future<int> f = stlab::async(stlab::default_executor, answer);\n \n-    BOOST_REQUIRE_EQUAL(42, stlab::await(std::move(f)));\n+    REQUIRE(stlab::await(std::move(f)) == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_moveonly_value) {\n-    BOOST_TEST_MESSAGE(\"future wait with moveonly value\");\n+TEST_CASE(\"future_wait_moveonly_value\") {\n+    //\"future wait with moveonly value\");\n     auto answer = [] { return stlab::move_only(42); };\n \n     stlab::future<stlab::move_only> f = stlab::async(stlab::default_executor, answer);\n \n-    BOOST_REQUIRE_EQUAL(42, stlab::await(std::move(f)).member());\n+    REQUIRE(stlab::await(std::move(f)).member() == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_void) {\n-    BOOST_TEST_MESSAGE(\"future wait with void\");\n+TEST_CASE(\"future_wait_void\") {\n+    //\"future wait with void\");\n     int v = 0;\n     auto answer = [&] { v = 42; };\n \n     stlab::future<void> f = stlab::async(stlab::default_executor, answer);\n \n     stlab::await(std::move(f));\n-    BOOST_REQUIRE_EQUAL(42, v);\n+    REQUIRE(v == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_void_with_timeout) {\n-    BOOST_TEST_MESSAGE(\"future wait with void\");\n+TEST_CASE(\"future_wait_void_with_timeout\") {\n+    //\"future wait with void\");\n     int v = 0;\n     auto answer = [&] { v = 42; };\n \n     stlab::future<void> f = stlab::async(stlab::default_executor, answer);\n \n     auto r = stlab::await_for(std::move(f), std::chrono::seconds(2));\n-    BOOST_REQUIRE_EQUAL(42, v);\n-    BOOST_REQUIRE_EQUAL(true, r.is_ready());\n+    REQUIRE(v == 42);\n+    REQUIRE(r.is_ready());\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_void_with_timeout_reached) {\n-    BOOST_TEST_MESSAGE(\"future wait with void with a timeout\");\n+TEST_CASE(\"future_wait_void_with_timeout_reached\") {\n+    //\"future wait with void with a timeout\");\n     auto answer = [&] {\n         invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(500)); });\n     };\n \n     stlab::future<void> f = stlab::async(stlab::default_executor, answer);\n     f = stlab::await_for(std::move(f), std::chrono::milliseconds(100));\n-    BOOST_REQUIRE(!f.is_ready());\n+    REQUIRE(!f.is_ready());\n     stlab::await(std::move(f));\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_int_with_timeout_reached) {\n-    BOOST_TEST_MESSAGE(\"future wait with int with a timeout\");\n+TEST_CASE(\"future_wait_int_with_timeout_reached\") {\n+    //\"future wait with int with a timeout\");\n     auto answer = [&] {\n         stlab::invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(500)); });\n         return 42;\n     };\n \n     stlab::future<int> f = stlab::async(stlab::default_executor, answer);\n     f = stlab::await_for(std::move(f), std::chrono::milliseconds(100));\n-    BOOST_REQUIRE(!f.is_ready());\n-    BOOST_REQUIRE(stlab::await(std::move(f)) == 42);\n+    REQUIRE(!f.is_ready());\n+    REQUIRE(stlab::await(std::move(f)) == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_move_only_with_timeout_reached) {\n-    BOOST_TEST_MESSAGE(\"future wait with move_only with a timeout\");\n+TEST_CASE(\"future_wait_move_only_with_timeout_reached\") {\n+    //\"future wait with move_only with a timeout\");\n     auto answer = [&] {\n         stlab::invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(500)); });\n         return move_only(42);\n     };\n \n     stlab::future<move_only> f = stlab::async(stlab::default_executor, answer);\n     f = stlab::await_for(std::move(f), std::chrono::milliseconds(100));\n-    BOOST_REQUIRE(!f.is_ready());\n-    BOOST_REQUIRE(stlab::await(std::move(f)).member() == 42);\n+    REQUIRE(!f.is_ready());\n+    REQUIRE(stlab::await(std::move(f)).member() == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_copyable_value_error_case) {\n-    BOOST_TEST_MESSAGE(\"future wait with copyable value error case\");\n+TEST_CASE(\"future_wait_copyable_value_error_case\") {\n+    //\"future wait with copyable value error case\");\n     auto answer = []() -> int { throw test_exception(\"failure\"); };\n \n     stlab::future<int> f = stlab::async(stlab::default_executor, answer);\n \n-    BOOST_REQUIRE_EXCEPTION(stlab::await(std::move(f)), test_exception, ([](const auto& e) {\n-                                return std::string(e.what()) == std::string(\"failure\");\n-                            }));\n+    REQUIRE_THROWS_AS(stlab::await(std::move(f)), test_exception);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_moveonly_value_error_case) {\n-    BOOST_TEST_MESSAGE(\"future wait with moveonly value\");\n+TEST_CASE(\"future_wait_moveonly_value_error_case\") {\n+    //\"future wait with moveonly value\");\n     auto answer = []() -> stlab::move_only { throw test_exception(\"failure\"); };\n \n     stlab::future<stlab::move_only> f = stlab::async(stlab::default_executor, answer);\n \n-    BOOST_REQUIRE_EXCEPTION(stlab::await(std::move(f)), test_exception, ([](const auto& e) {\n-                                return std::string(e.what()) == std::string(\"failure\");\n-                            }));\n+    REQUIRE_THROWS_AS(stlab::await(std::move(f)), test_exception);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_void_error_case) {\n-    BOOST_TEST_MESSAGE(\"future wait with void error case\");\n+TEST_CASE(\"future_wait_void_error_case\") {\n+    //\"future wait with void error case\");\n \n     auto answer = [] { throw test_exception(\"failure\"); };\n \n     stlab::future<void> f = stlab::async(stlab::default_executor, answer);\n \n-    BOOST_REQUIRE_EXCEPTION(stlab::await(std::move(f)), test_exception, ([](const auto& e) {\n-                                return std::string(e.what()) == std::string(\"failure\");\n-                            }));\n+    REQUIRE_THROWS_AS(stlab::await(std::move(f)), test_exception);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_void_error_case_with_timeout) {\n-    BOOST_TEST_MESSAGE(\"future wait with void error case with timeout\");\n+TEST_CASE(\"future_wait_void_error_case_with_timeout\") {\n+    //\"future wait with void error case with timeout\");\n \n     auto answer = [] { throw test_exception(\"failure\"); };\n \n     stlab::future<void> f = stlab::async(stlab::default_executor, answer);\n \n-    BOOST_REQUIRE_EXCEPTION(\n-        stlab::await_for(std::move(f), std::chrono::seconds(60)).get_try(), test_exception,\n-        ([](const auto& e) { return std::string(e.what()) == std::string(\"failure\"); }));\n+    REQUIRE_THROWS_AS(stlab::await_for(std::move(f), std::chrono::seconds(60)).get_try(),\n+                      test_exception);\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_copyable_value_timeout) {\n-    BOOST_TEST_MESSAGE(\"future wait with copyable value with timeout\");\n+TEST_CASE(\"future_wait_copyable_value_timeout\") {\n+    //\"future wait with copyable value with timeout\");\n     auto answer = [] {\n         stlab::invoke_waiting([] { std::this_thread::sleep_for(std::chrono::seconds(1)); });\n         return 42;\n@@ -540,42 +512,41 @@ BOOST_AUTO_TEST_CASE(future_wait_copyable_value_timeout) {\n \n     auto r = stlab::await_for(std::move(f), std::chrono::milliseconds(500));\n     // timeout should have been reached\n-    BOOST_REQUIRE(!r.is_ready());\n+    REQUIRE(!r.is_ready());\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_moveonly_value_and_timeout) {\n-    BOOST_TEST_MESSAGE(\"future wait with moveonly value\");\n+TEST_CASE(\"future_wait_moveonly_value_and_timeout\") {\n+    //\"future wait with moveonly value\");\n     auto answer = [] {\n         stlab::invoke_waiting([] { std::this_thread::sleep_for(std::chrono::milliseconds(1)); });\n         return stlab::move_only(42);\n     };\n \n     stlab::future<stlab::move_only> f = stlab::async(stlab::default_executor, answer);\n     auto r = stlab::await_for(std::move(f), std::chrono::milliseconds(500));\n-    BOOST_REQUIRE(r.is_ready());\n-    BOOST_REQUIRE_EQUAL(42, r.get_try()->member());\n+    REQUIRE(r.is_ready());\n+    REQUIRE(r.get_try()->member() == 42);\n }\n \n namespace {\n bool always_true{true}; // used to avoid unused variable warning\n }\n \n-BOOST_AUTO_TEST_CASE(future_wait_moveonly_value_error_case_and_timeout) {\n-    BOOST_TEST_MESSAGE(\"future wait with moveonly value and timeout set\");\n+TEST_CASE(\"future_wait_moveonly_value_error_case_and_timeout\") {\n+    //\"future wait with moveonly value and timeout set\");\n     auto answer = [] {\n         if (always_true) throw test_exception(\"failure\");\n         return stlab::move_only(42);\n     };\n \n     stlab::future<stlab::move_only> f = stlab::async(stlab::default_executor, answer);\n \n-    BOOST_REQUIRE_EXCEPTION(\n-        stlab::await_for(std::move(f), std::chrono::seconds(500)).get_try(), test_exception,\n-        ([](const auto& e) { return std::string(e.what()) == std::string(\"failure\"); }));\n+    REQUIRE_THROWS_AS(stlab::await_for(std::move(f), std::chrono::seconds(500)).get_try(),\n+                      test_exception);\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_detach_without_execution) {\n-    BOOST_TEST_MESSAGE(\"future int detach without execution\");\n+TEST_CASE(\"future_int_detach_without_execution\") {\n+    //\"future int detach without execution\");\n     annotate_counters counter;\n     bool check = true;\n     {\n@@ -584,12 +555,12 @@ BOOST_AUTO_TEST_CASE(future_int_detach_without_execution) {\n     }\n     std::cout << counter;\n \n-    BOOST_REQUIRE_EQUAL(0u, counter.remaining());\n-    BOOST_REQUIRE(check);\n+    REQUIRE(counter.remaining() == 0u);\n+    REQUIRE(check);\n }\n \n-BOOST_AUTO_TEST_CASE(future_move_only_detach_without_execution) {\n-    BOOST_TEST_MESSAGE(\"future move_only detach without execution\");\n+TEST_CASE(\"future_move_only_detach_without_execution\") {\n+    //\"future move_only detach without execution\");\n     annotate_counters counter;\n     bool check = true;\n     {\n@@ -600,12 +571,12 @@ BOOST_AUTO_TEST_CASE(future_move_only_detach_without_execution) {\n     }\n     std::cout << counter;\n \n-    BOOST_REQUIRE_EQUAL(0u, counter.remaining());\n-    BOOST_REQUIRE(check);\n+    REQUIRE(counter.remaining() == 0u);\n+    REQUIRE(check);\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_detach_without_execution) {\n-    BOOST_TEST_MESSAGE(\"future void detach without execution\");\n+TEST_CASE(\"future_void_detach_without_execution\") {\n+    //\"future void detach without execution\");\n     annotate_counters counter;\n     bool check = true;\n     {\n@@ -614,12 +585,12 @@ BOOST_AUTO_TEST_CASE(future_void_detach_without_execution) {\n     }\n     std::cout << counter;\n \n-    BOOST_REQUIRE_EQUAL(0u, counter.remaining());\n-    BOOST_REQUIRE(check);\n+    REQUIRE(counter.remaining() == 0u);\n+    REQUIRE(check);\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_detach_with_execution) {\n-    BOOST_TEST_MESSAGE(\"future int detach with execution\");\n+TEST_CASE(\"future_int_detach_with_execution\") {\n+    //\"future int detach with execution\");\n     annotate_counters counter;\n     int result = 0;\n     {\n@@ -630,12 +601,12 @@ BOOST_AUTO_TEST_CASE(future_int_detach_with_execution) {\n     }\n     std::cout << counter;\n \n-    BOOST_REQUIRE_EQUAL(counter._dtor, counter._move_ctor + 1);\n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(counter._dtor == counter._move_ctor + 1);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_detach_with_execution) {\n-    BOOST_TEST_MESSAGE(\"future void detach with execution\");\n+TEST_CASE(\"future_void_detach_with_execution\") {\n+    //\"future void detach with execution\");\n     annotate_counters counter;\n     bool check = false;\n     {\n@@ -646,12 +617,12 @@ BOOST_AUTO_TEST_CASE(future_void_detach_with_execution) {\n     }\n     std::cout << counter;\n \n-    BOOST_REQUIRE_EQUAL(counter._dtor, counter._move_ctor + 1);\n-    BOOST_REQUIRE(check);\n+    REQUIRE(counter._dtor == counter._move_ctor + 1);\n+    REQUIRE(check);\n }\n \n-BOOST_AUTO_TEST_CASE(future_move_only_detach_with_execution) {\n-    BOOST_TEST_MESSAGE(\"future move_only detach with execution\");\n+TEST_CASE(\"future_move_only_detach_with_execution\") {\n+    //\"future move_only detach with execution\");\n     annotate_counters counter;\n     int result = 0;\n     {\n@@ -663,12 +634,12 @@ BOOST_AUTO_TEST_CASE(future_move_only_detach_with_execution) {\n     }\n     std::cout << counter;\n \n-    BOOST_REQUIRE_EQUAL(counter._dtor, counter._move_ctor + 1);\n-    BOOST_REQUIRE_EQUAL(42, result);\n+    REQUIRE(counter._dtor == counter._move_ctor + 1);\n+    REQUIRE(result == 42);\n }\n \n-BOOST_AUTO_TEST_CASE(future_reduction_cancellation) {\n-    BOOST_TEST_MESSAGE(\"future reduction cancellation\");\n+TEST_CASE(\"future_reduction_cancellation\") {\n+    //\"future reduction cancellation\");\n \n     optional<packaged_task<>> _hold;\n \n@@ -678,15 +649,17 @@ BOOST_AUTO_TEST_CASE(future_reduction_cancellation) {\n         return std::move(future_);\n     };\n \n-    BOOST_REQUIRE(_hold && !_hold->canceled());\n+    REQUIRE(_hold);\n+    REQUIRE(!_hold->canceled());\n \n     f.reset(); // cancel the future\n \n-    BOOST_REQUIRE(_hold && _hold->canceled());\n+    REQUIRE(_hold);\n+    REQUIRE(_hold->canceled());\n }\n \n-BOOST_AUTO_TEST_CASE(future_reduction_with_mutable_task) {\n-    BOOST_TEST_MESSAGE(\"future reduction with mutable task\");\n+TEST_CASE(\"future_reduction_with_mutable_task\") {\n+    //\"future reduction with mutable task\");\n \n     auto func = [i = 0]() mutable {\n         i++;\n@@ -700,11 +673,11 @@ BOOST_AUTO_TEST_CASE(future_reduction_with_mutable_task) {\n                             [func = std::move(func)]() mutable { return func(); });\n     });\n \n-    BOOST_REQUIRE_EQUAL(2, stlab::await(std::move(result)));\n+    REQUIRE(stlab::await(std::move(result)) == 2);\n }\n \n-BOOST_AUTO_TEST_CASE(future_reduction_with_mutable_void_task) {\n-    BOOST_TEST_MESSAGE(\"future reduction with mutable task\");\n+TEST_CASE(\"future_reduction_with_mutable_void_task\") {\n+    //\"future reduction with mutable task\");\n \n     std::atomic_int check{0};\n     auto func = [&check]() mutable { ++check; };\n@@ -718,11 +691,11 @@ BOOST_AUTO_TEST_CASE(future_reduction_with_mutable_void_task) {\n \n     static_cast<void>(stlab::await(std::move(result)));\n \n-    BOOST_REQUIRE_EQUAL(2, check);\n+    REQUIRE(check == 2);\n }\n \n-BOOST_AUTO_TEST_CASE(future_reduction_with_move_only_mutable_task) {\n-    BOOST_TEST_MESSAGE(\"future reduction with move only mutable task\");\n+TEST_CASE(\"future_reduction_with_move_only_mutable_task\") {\n+    //\"future reduction with move only mutable task\");\n \n     auto func = [i = move_only{0}]() mutable {\n         i = move_only{i.member() + 1};\n@@ -736,11 +709,11 @@ BOOST_AUTO_TEST_CASE(future_reduction_with_move_only_mutable_task) {\n                             [func = std::move(func)]() mutable { return func(); });\n     });\n \n-    BOOST_REQUIRE_EQUAL(2, stlab::await(std::move(result)).member());\n+    REQUIRE(stlab::await(std::move(result)).member() == 2);\n }\n \n-BOOST_AUTO_TEST_CASE(future_reduction_with_move_only_mutable_void_task) {\n-    BOOST_TEST_MESSAGE(\"future reduction with move only mutable void task\");\n+TEST_CASE(\"future_reduction_with_move_only_mutable_void_task\") {\n+    //\"future reduction with move only mutable void task\");\n \n     int check{0};\n     auto func = [i = move_only{0}, &check]() mutable {\n@@ -757,11 +730,11 @@ BOOST_AUTO_TEST_CASE(future_reduction_with_move_only_mutable_void_task) {\n \n     static_cast<void>(stlab::await(std::move(result)));\n \n-    BOOST_REQUIRE_EQUAL(3, check);\n+    REQUIRE(check == 3);\n }\n \n-BOOST_AUTO_TEST_CASE(future_reduction_executor) {\n-    BOOST_TEST_MESSAGE(\"future reduction executor should propagate from outermost future\");\n+TEST_CASE(\"future_reduction_executor\") {\n+    //\"future reduction executor should propagate from outermost future\");\n \n     size_t outer_count{0};\n     size_t inner_count{0};\n@@ -777,17 +750,17 @@ BOOST_AUTO_TEST_CASE(future_reduction_executor) {\n     auto f = make_ready_future(5, outer_executor) |\n              [&](int x) { return make_ready_future(x, inner_executor); };\n \n-    BOOST_REQUIRE_EQUAL(1u, outer_count);\n-    BOOST_REQUIRE_EQUAL(0u, inner_count);\n+    REQUIRE(outer_count == 1u);\n+    REQUIRE(inner_count == 0u);\n \n     auto f1 = f | [](int x) { return x; };\n \n-    BOOST_REQUIRE_EQUAL(2u, outer_count);\n-    BOOST_REQUIRE_EQUAL(0u, inner_count);\n-    BOOST_REQUIRE_EQUAL(5, *f1.get_try());\n+    REQUIRE(outer_count == 2u);\n+    REQUIRE(inner_count == 0u);\n+    REQUIRE(*f1.get_try() == 5);\n }\n \n-BOOST_AUTO_TEST_CASE(future_await_regression) {\n+TEST_CASE(\"future_await_regression\") {\n     future<unique_ptr<int>> f = async(default_executor, [] { return std::make_unique<int>(42); });\n     f = std::move(f).then([](unique_ptr<int> p) {\n         if (p) ++(*p);"},{"sha":"ee6d5f5c759691731c8de40ff51212859f3e4ad0","filename":"test/future_then_tests.cpp","status":"modified","additions":273,"deletions":388,"changes":661,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_then_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_then_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_then_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -12,7 +12,7 @@\n #include <utility>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -29,25 +29,19 @@ using namespace std;\n using namespace stlab;\n using namespace future_test_helper;\n \n-BOOST_FIXTURE_TEST_SUITE(future_then_void, test_fixture<void>)\n-\n-BOOST_AUTO_TEST_CASE(future_void_single_task) {\n-    BOOST_TEST_MESSAGE(\"running future void single task\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_void_single_task\") {\n     int p = 0;\n \n     sut = async(make_executor<0>(), [&_p = p] { _p = 42; });\n \n     check_valid_future(sut);\n     wait_until_future_completed(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(42, p);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(p == 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_single_task_detached) {\n-    BOOST_TEST_MESSAGE(\"running future void single task detached\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_void_single_task_detached\") {\n     atomic_int p{0};\n     {\n         auto detached = async(make_executor<0>(), [&_p = p] { _p = 42; });\n@@ -57,9 +51,7 @@ BOOST_AUTO_TEST_CASE(future_void_single_task_detached) {\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_same_scheduler_then_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\"running future void with two task on same scheduler, then on r-value\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_void_two_tasks_with_same_scheduler_then_on_rvalue\") {\n     /* because of a gcc version < 6 bug, it is not possible to use the following\n     using task_t = function<void()>;\n     using op_t = future<void>(future<void>::*)(task_t&&)&&;\n@@ -77,8 +69,8 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_same_scheduler_then_on_rvalue) {\n         check_valid_future(sut);\n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         atomic_int p{0};\n@@ -88,14 +80,12 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_same_scheduler_then_on_rvalue) {\n         check_valid_future(sut);\n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_same_scheduler_then_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\"running future void with two task on same scheduler, then on l-value\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_void_two_tasks_with_same_scheduler_then_on_lvalue\") {\n     {\n         atomic_int p{0};\n         auto interim = async(make_executor<0>(), [&_p = p] { _p = 42; });\n@@ -105,8 +95,8 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_same_scheduler_then_on_lvalue) {\n         check_valid_future(sut);\n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         atomic_int p{0};\n@@ -117,14 +107,12 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_same_scheduler_then_on_lvalue) {\n         check_valid_future(sut);\n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_void_two_tasks_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future int void tasks with same scheduler\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_int_void_two_tasks_with_same_scheduler\") {\n     {\n         atomic_int p{0};\n \n@@ -133,8 +121,8 @@ BOOST_AUTO_TEST_CASE(future_int_void_two_tasks_with_same_scheduler) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         atomic_int p{0};\n@@ -144,14 +132,12 @@ BOOST_AUTO_TEST_CASE(future_int_void_two_tasks_with_same_scheduler) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_void_two_tasks_with_different_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future int void tasks with different schedulers\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_int_void_two_tasks_with_different_scheduler\") {\n     {\n         atomic_int p{0};\n \n@@ -162,9 +148,9 @@ BOOST_AUTO_TEST_CASE(future_int_void_two_tasks_with_different_scheduler) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n     {\n         atomic_int p{0};\n@@ -176,15 +162,13 @@ BOOST_AUTO_TEST_CASE(future_int_void_two_tasks_with_different_scheduler) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_different_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future void two tasks with different schedulers\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_void_two_tasks_with_different_scheduler\") {\n     {\n         atomic_int p{0};\n \n@@ -195,9 +179,9 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_different_scheduler) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -213,9 +197,9 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_different_scheduler) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n }\n \n@@ -226,9 +210,7 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_with_different_scheduler) {\n        \\\n         f2\n */\n-BOOST_AUTO_TEST_CASE(future_void_Y_formation_tasks_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future void with Y formation with same scheduler\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_void_Y_formation_tasks_with_same_scheduler\") {\n     {\n         atomic_int p{0};\n         int r1 = 0;\n@@ -241,9 +223,9 @@ BOOST_AUTO_TEST_CASE(future_void_Y_formation_tasks_with_same_scheduler) {\n         check_valid_future(sut, f1, f2);\n         wait_until_future_completed(std::move(f1), std::move(f2));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, r1);\n-        BOOST_REQUIRE_EQUAL(42 + 4711, r2);\n-        BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+        REQUIRE(r1 == 42 + 42);\n+        REQUIRE(r2 == 42 + 4711);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n     }\n     {\n         atomic_int p{0};\n@@ -257,15 +239,13 @@ BOOST_AUTO_TEST_CASE(future_void_Y_formation_tasks_with_same_scheduler) {\n         check_valid_future(sut, f1, f2);\n         wait_until_future_completed(std::move(f1), std::move(f2));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, r1);\n-        BOOST_REQUIRE_EQUAL(42 + 4711, r2);\n-        BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+        REQUIRE(r1 == 42 + 42);\n+        REQUIRE(r2 == 42 + 4711);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_void) {\n-    BOOST_TEST_MESSAGE(\"running future reduction void to void\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"reduction_future_void\") {\n     {\n         bool first{false};\n         bool second{false};\n@@ -276,8 +256,8 @@ BOOST_AUTO_TEST_CASE(reduction_future_void) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n     {\n         bool first{false};\n@@ -288,14 +268,12 @@ BOOST_AUTO_TEST_CASE(reduction_future_void) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_int_to_void) {\n-    BOOST_TEST_MESSAGE(\"running future reduction int to void\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"reduction_future_int_to_void\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -316,9 +294,9 @@ BOOST_AUTO_TEST_CASE(reduction_future_int_to_void) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(84, result);\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE(result == 84);\n     }\n     {\n         atomic_bool first{false};\n@@ -342,14 +320,13 @@ BOOST_AUTO_TEST_CASE(reduction_future_int_to_void) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(84, result);\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE(result == 84);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_void) {\n-    BOOST_TEST_MESSAGE(\"running future reduction move-only to void\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"reduction_future_move_only_to_void\") {\n     {\n         atomic_bool first{false};\n         move_only result;\n@@ -365,8 +342,8 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_void) {\n \n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE_EQUAL(42, result.member());\n+        REQUIRE(first);\n+        REQUIRE(result.member() == 42);\n     }\n     {\n         bool first{false};\n@@ -382,30 +359,24 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_void) {\n                 std::forward<move_only>(x));\n         });\n \n-        BOOST_REQUIRE(sut.get_try());\n+        REQUIRE(sut.get_try());\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE_EQUAL(42, result.member());\n+        REQUIRE(first);\n+        REQUIRE(result.member() == 42);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_then_non_copyable, test_fixture<move_only>)\n-BOOST_AUTO_TEST_CASE(future_non_copyable_single_task) {\n-    BOOST_TEST_MESSAGE(\"running future non copyable single task\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>, \"future_non_copyable_single_task\") {\n     sut = async(make_executor<0>(), [] { return move_only(42); });\n \n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(42, result.member());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(result.member() == 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_then_non_copyable_detach) {\n-    BOOST_TEST_MESSAGE(\"running future non copyable, detached\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_then_non_copyable_detach\") {\n     atomic_bool check{false};\n     {\n         async(make_executor<0>(), [&_check = check] {\n@@ -418,51 +389,45 @@ BOOST_AUTO_TEST_CASE(future_then_non_copyable_detach) {\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_non_copyable_capture) {\n-    BOOST_TEST_MESSAGE(\"running future non copyable capture\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>, \"future_non_copyable_capture\") {\n     move_only m{42};\n \n     sut = async(make_executor<0>(), [&_m = m] { return move_only(_m.member()); });\n \n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(42, result.member());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(result.member() == 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_copyable_with_non_copyable_as_continuation_with_same_scheduler_then_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future copyable with non copyable as contination with same scheduler, then on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<stlab::move_only>,\n+    \"future_copyable_with_non_copyable_as_continuation_with_same_scheduler_then_on_rvalue\") {\n     {\n         sut =\n             async(make_executor<0>(), [] { return 42; }).then([](auto x) { return move_only(x); });\n \n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         sut = async(make_executor<0>(), [] { return 42; }) | [](auto x) { return move_only(x); };\n \n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_copyable_with_non_copyable_as_continuation_with_different_scheduler_then_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future copyable with non copyable as contination with different scheduler, then on r-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<stlab::move_only>,\n+    \"future_copyable_with_non_copyable_as_continuation_with_different_scheduler_then_on_rvalue\") {\n     {\n         sut = async(make_executor<0>(), [] { return 42; }).then(make_executor<1>(), [](auto x) {\n             return move_only(x);\n@@ -471,9 +436,9 @@ BOOST_AUTO_TEST_CASE(\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -486,17 +451,15 @@ BOOST_AUTO_TEST_CASE(\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_copyable_with_non_copyable_as_continuation_with_same_scheduler_then_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future copyable with non copyable as contination with same scheduler, then on l-value\");\n-\n+TEST_CASE_FIXTURE(\n+    test_fixture<stlab::move_only>,\n+    \"future_copyable_with_non_copyable_as_continuation_with_same_scheduler_then_on_lvalue\") {\n     {\n         auto interim = async(make_executor<0>(), [] { return 42; });\n \n@@ -505,8 +468,8 @@ BOOST_AUTO_TEST_CASE(\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         auto interim = async(make_executor<0>(), [] { return 42; });\n@@ -516,15 +479,14 @@ BOOST_AUTO_TEST_CASE(\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_copyable_with_non_copyable_as_continuation_with_different_scheduler_then_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future copyable with non copyable as contination with different scheduler, then on l-value\");\n+TEST_CASE_FIXTURE(\n+    test_fixture<stlab::move_only>,\n+    \"future_copyable_with_non_copyable_as_continuation_with_different_scheduler_then_on_lvalue\") {\n     {\n         auto interim = async(make_executor<0>(), [] { return 42; });\n \n@@ -533,9 +495,9 @@ BOOST_AUTO_TEST_CASE(\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n     custom_scheduler<0>::reset();\n     custom_scheduler<1>::reset();\n@@ -547,16 +509,14 @@ BOOST_AUTO_TEST_CASE(\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_non_copyable_as_continuation_with_same_scheduler_then_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future non copyable as contination with same scheduler, then on r-value\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_non_copyable_as_continuation_with_same_scheduler_then_on_rvalue\") {\n     {\n         sut = async(make_executor<0>(), [] { return move_only(42); }).then([](auto&& x) {\n             return move_only(x.member() * 2);\n@@ -565,8 +525,8 @@ BOOST_AUTO_TEST_CASE(future_non_copyable_as_continuation_with_same_scheduler_the\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 * 2, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42 * 2);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         sut = async(make_executor<0>(), [] { return move_only(42); }) |\n@@ -575,14 +535,13 @@ BOOST_AUTO_TEST_CASE(future_non_copyable_as_continuation_with_same_scheduler_the\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 * 2, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42 * 2);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_non_copyable_as_continuation_with_different_scheduler_then_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future non copyable as contination with different scheduler, then on r-value\");\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_non_copyable_as_continuation_with_different_scheduler_then_on_rvalue\") {\n     {\n         sut = async(make_executor<0>(), [] {\n                   return move_only(42);\n@@ -591,9 +550,9 @@ BOOST_AUTO_TEST_CASE(future_non_copyable_as_continuation_with_different_schedule\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 * 2, result.member());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42 * 2);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n \n     custom_scheduler<0>::reset();\n@@ -606,71 +565,63 @@ BOOST_AUTO_TEST_CASE(future_non_copyable_as_continuation_with_different_schedule\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 * 2, result.member());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<0>::usage_counter());\n-        BOOST_REQUIRE_EQUAL(1, custom_scheduler<1>::usage_counter());\n+        REQUIRE(result.member() == 42 * 2);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+        REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_then_move_only, test_fixture<move_only>)\n-\n-BOOST_AUTO_TEST_CASE(future_async_move_only_move_captured_to_result) {\n-    BOOST_TEST_MESSAGE(\"running future move only move to result\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_async_move_only_move_captured_to_result\") {\n     {\n         sut =\n             async(make_executor<0>(), [] { return move_only{42}; }).then([](auto x) { return x; });\n \n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         sut = async(make_executor<0>(), [] { return move_only{42}; }) | [](auto x) { return x; };\n \n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_async_moving_move_only_capture_to_result) {\n-    BOOST_TEST_MESSAGE(\"moving move_only capture to result\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_async_moving_move_only_capture_to_result\") {\n     move_only m{42};\n \n     sut = async(make_executor<0>(), [&_m = m] { return std::move(_m); });\n \n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(42, result.member());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(result.member() == 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_async_mutable_move_move_only_capture_to_result) {\n-    BOOST_TEST_MESSAGE(\"moving move_only capture to result in task\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_async_mutable_move_move_only_capture_to_result\") {\n     move_only m{42};\n \n     sut = async(make_executor<0>(), [&_m = m]() { return std::move(_m); });\n \n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(42, result.member());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(result.member() == 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_continuation_moving_move_only_capture_to_result) {\n-    BOOST_TEST_MESSAGE(\"moving move_only capture to result\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_continuation_moving_move_only_capture_to_result\") {\n     move_only m{42};\n \n     sut = async(make_executor<0>(), [] { return move_only{10}; }).then([&_m = m](auto) {\n@@ -680,13 +631,12 @@ BOOST_AUTO_TEST_CASE(future_continuation_moving_move_only_capture_to_result) {\n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(42, result.member());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(result.member() == 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_continuation_async_mutable_move_move_only_capture_to_result) {\n-    BOOST_TEST_MESSAGE(\"moving move_only capture to result in task\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_continuation_async_mutable_move_move_only_capture_to_result\") {\n     {\n         move_only m{42};\n \n@@ -697,8 +647,8 @@ BOOST_AUTO_TEST_CASE(future_continuation_async_mutable_move_move_only_capture_to\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         move_only m{42};\n@@ -709,13 +659,12 @@ BOOST_AUTO_TEST_CASE(future_continuation_async_mutable_move_move_only_capture_to\n         check_valid_future(sut);\n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42, result.member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.member() == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_move_only) {\n-    BOOST_TEST_MESSAGE(\"running future reduction move-only to move-only\");\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>, \"reduction_future_move_only_to_move_only\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -735,9 +684,9 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_move_only) {\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(42, result.member());\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE(result.member() == 42);\n     }\n     {\n         bool first{false};\n@@ -758,14 +707,12 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_move_only) {\n \n         auto result = await(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(42, result.member());\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE(result.member() == 42);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n namespace stlab {\n \n // specializing std::vector, so that the framework can detect correctly\n@@ -775,11 +722,8 @@ struct smart_test<test, std::vector<T, A>> : test<T> {};\n \n } // namespace stlab\n \n-BOOST_FIXTURE_TEST_SUITE(future_then_move_only_container, test_fixture<std::vector<move_only>>)\n-\n-BOOST_AUTO_TEST_CASE(future_continuation_async_move_only_container) {\n-    BOOST_TEST_MESSAGE(\"moving move_only move only container\");\n-\n+TEST_CASE_FIXTURE(test_fixture<std::vector<stlab::move_only>>,\n+                  \"future_continuation_async_move_only_container\") {\n     {\n         sut = async(make_executor<0>(), []() {\n                   std::vector<move_only> result;\n@@ -795,11 +739,11 @@ BOOST_AUTO_TEST_CASE(future_continuation_async_move_only_container) {\n         check_valid_future(sut);\n         auto result = stlab::await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(3u, result.size());\n-        BOOST_REQUIRE_EQUAL(10, result[0].member());\n-        BOOST_REQUIRE_EQUAL(42, result[1].member());\n-        BOOST_REQUIRE_EQUAL(50, result[2].member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.size() == 3u);\n+        REQUIRE(result[0].member() == 10);\n+        REQUIRE(result[1].member() == 42);\n+        REQUIRE(result[2].member() == 50);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         sut = async(make_executor<0>(),\n@@ -818,47 +762,38 @@ BOOST_AUTO_TEST_CASE(future_continuation_async_move_only_container) {\n         check_valid_future(sut);\n         auto result = stlab::await(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(3u, result.size());\n-        BOOST_REQUIRE_EQUAL(10, result[0].member());\n-        BOOST_REQUIRE_EQUAL(42, result[1].member());\n-        BOOST_REQUIRE_EQUAL(50, result[2].member());\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(result.size() == 3u);\n+        REQUIRE(result[0].member() == 10);\n+        REQUIRE(result[1].member() == 42);\n+        REQUIRE(result[2].member() == 50);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_then_int, test_fixture<int>)\n-\n-BOOST_AUTO_TEST_CASE(future_int_single_task) {\n-    BOOST_TEST_MESSAGE(\"running future int single tasks\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_single_task\") {\n     sut = async(make_executor<0>(), [] { return 42; });\n \n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(42, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE((*sut.get_try() == 42));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_single_task_get_try_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\"running future int single tasks, get_try on r-value\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_single_task_get_try_on_rvalue\") {\n     sut = async(make_executor<0>(), [] { return 42; });\n \n     auto test_result_1 = std::move(sut).get_try(); // test for r-value implementation\n     (void)test_result_1;\n     wait_until_future_completed(copy(sut));\n     auto test_result_2 = std::move(sut).get_try();\n \n-    BOOST_REQUIRE_EQUAL(42, *sut.get_try());\n-    BOOST_REQUIRE_EQUAL(42, *test_result_2);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE((*sut.get_try() == 42));\n+    REQUIRE((*test_result_2 == 42));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_single_task_detached) {\n-    BOOST_TEST_MESSAGE(\"running future int single tasks, detached\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_int_single_task_detached\") {\n     atomic_bool check{false};\n     {\n         auto detached = async(make_executor<0>(), [&_check = check] {\n@@ -872,32 +807,28 @@ BOOST_AUTO_TEST_CASE(future_int_single_task_detached) {\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_two_tasks_with_same_scheduler_then_on_rvalue) {\n-    BOOST_TEST_MESSAGE(\"running future int two tasks with same scheduler, then on r-value\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_two_tasks_with_same_scheduler_then_on_rvalue\") {\n     {\n         sut = async(make_executor<0>(), [] { return 42; }).then([](auto x) { return x + 42; });\n \n         check_valid_future(sut);\n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE((*sut.get_try() == 42 + 42));\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         sut = async(make_executor<0>(), [] { return 42; }) | [](auto x) { return x + 42; };\n \n         check_valid_future(sut);\n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE((*sut.get_try() == 42 + 42));\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_two_tasks_with_same_scheduler_then_on_lvalue) {\n-    BOOST_TEST_MESSAGE(\"running future int two tasks with same scheduler, then on l-value\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_two_tasks_with_same_scheduler_then_on_lvalue\") {\n     {\n         auto interim = async(make_executor<0>(), [] { return 42; });\n \n@@ -906,8 +837,8 @@ BOOST_AUTO_TEST_CASE(future_int_two_tasks_with_same_scheduler_then_on_lvalue) {\n         check_valid_future(sut);\n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE((*sut.get_try() == 42 + 42));\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         auto interim = async(make_executor<0>(), [] { return 42; });\n@@ -917,29 +848,25 @@ BOOST_AUTO_TEST_CASE(future_int_two_tasks_with_same_scheduler_then_on_lvalue) {\n         check_valid_future(sut);\n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE((*sut.get_try() == 42 + 42));\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_two_tasks_with_different_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future int two tasks with different scheduler\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_two_tasks_with_different_scheduler\") {\n     sut = async(make_executor<0>(), [] { return 42; }).then(make_executor<1>(), [](auto x) {\n         return x + 42;\n     });\n \n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((*sut.get_try() == 42 + 42));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_int_two_tasks_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future void int tasks with same scheduler\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_void_int_two_tasks_with_same_scheduler\") {\n     {\n         atomic_int p{0};\n \n@@ -951,8 +878,8 @@ BOOST_AUTO_TEST_CASE(future_void_int_two_tasks_with_same_scheduler) {\n         check_valid_future(sut);\n         wait_until_future_completed(std::move(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         atomic_int p{0};\n@@ -965,14 +892,12 @@ BOOST_AUTO_TEST_CASE(future_void_int_two_tasks_with_same_scheduler) {\n         check_valid_future(sut);\n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42 + 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_int_two_tasks_with_different_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future void int tasks with different schedulers\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_void_int_two_tasks_with_different_scheduler\") {\n     atomic_int p{0};\n \n     sut = async(make_executor<0>(), [&_p = p] { _p = 42; }).then(make_executor<1>(), [&_p = p] {\n@@ -983,17 +908,15 @@ BOOST_AUTO_TEST_CASE(future_void_int_two_tasks_with_different_scheduler) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(42 + 42, p);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(p == 42 + 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n /*\n     sut - f - f\n */\n-BOOST_AUTO_TEST_CASE(future_int_three_tasks_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future int with three tasks with same scheduler\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_three_tasks_with_same_scheduler\") {\n     {\n         sut = async(make_executor<0>(), [] {\n                   return 42;\n@@ -1004,8 +927,8 @@ BOOST_AUTO_TEST_CASE(future_int_three_tasks_with_same_scheduler) {\n         check_valid_future(sut);\n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42 + 42, *sut.get_try());\n-        BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+        REQUIRE((*sut.get_try() == 42 + 42 + 42));\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n     }\n     {\n         sut = async(make_executor<0>(), [] { return 42; }) | [](auto x) { return x + 42; } |\n@@ -1014,8 +937,8 @@ BOOST_AUTO_TEST_CASE(future_int_three_tasks_with_same_scheduler) {\n         check_valid_future(sut);\n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42 + 42, *sut.get_try());\n-        BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+        REQUIRE((*sut.get_try() == 42 + 42 + 42));\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n     }\n }\n \n@@ -1026,9 +949,7 @@ BOOST_AUTO_TEST_CASE(future_int_three_tasks_with_same_scheduler) {\n        \\\n         f2\n */\n-BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future int Y formation tasks with same scheduler\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_Y_formation_tasks_with_same_scheduler\") {\n     {\n         sut = async(make_executor<0>(), [] { return 42; });\n         auto f1 = sut.then([](auto x) { return x + 42; });\n@@ -1037,9 +958,9 @@ BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_with_same_scheduler) {\n         check_valid_future(sut, f1, f2);\n         wait_until_future_completed(copy(f1), copy(f2));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, *f1.get_try());\n-        BOOST_REQUIRE_EQUAL(42 + 4177, *f2.get_try());\n-        BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+        REQUIRE(*f1.get_try() == 42 + 42);\n+        REQUIRE(*f2.get_try() == 42 + 4177);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n     }\n     {\n         sut = async(make_executor<0>(), [] { return 42; });\n@@ -1049,15 +970,13 @@ BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_with_same_scheduler) {\n         check_valid_future(sut, f1, f2);\n         wait_until_future_completed(copy(f1), copy(f2));\n \n-        BOOST_REQUIRE_EQUAL(42 + 42, *f1.get_try());\n-        BOOST_REQUIRE_EQUAL(42 + 4177, *f2.get_try());\n-        BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+        REQUIRE(*f1.get_try() == 42 + 42);\n+        REQUIRE(*f2.get_try() == 42 + 4177);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_void_to_int) {\n-    BOOST_TEST_MESSAGE(\"running future reduction void to int\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"reduction_future_void_to_int\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -1071,9 +990,9 @@ BOOST_AUTO_TEST_CASE(reduction_future_void_to_int) {\n \n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(42, *sut.get_try());\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE((*sut.get_try() == 42));\n     }\n     {\n         atomic_bool first{false};\n@@ -1088,15 +1007,13 @@ BOOST_AUTO_TEST_CASE(reduction_future_void_to_int) {\n \n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(42, *sut.get_try());\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE((*sut.get_try() == 42));\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_int_to_int) {\n-    BOOST_TEST_MESSAGE(\"running future reduction int to int\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"reduction_future_int_to_int\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -1116,9 +1033,9 @@ BOOST_AUTO_TEST_CASE(reduction_future_int_to_int) {\n \n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(84, *sut.get_try());\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE((*sut.get_try() == 84));\n     }\n     {\n         atomic_bool first{false};\n@@ -1141,32 +1058,26 @@ BOOST_AUTO_TEST_CASE(reduction_future_int_to_int) {\n \n         wait_until_future_completed(copy(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n-        BOOST_REQUIRE_EQUAL(84, *sut.get_try());\n+        REQUIRE(first);\n+        REQUIRE(second);\n+        REQUIRE((*sut.get_try() == 84));\n     }\n }\n-BOOST_AUTO_TEST_SUITE_END()\n \n // ----------------------------------------------------------------------------\n //                             Error cases\n // ----------------------------------------------------------------------------\n \n-BOOST_FIXTURE_TEST_SUITE(future_void_then_error, test_fixture<void>)\n-\n-BOOST_AUTO_TEST_CASE(future_void_single_task_error) {\n-    BOOST_TEST_MESSAGE(\"running future void with single tasks that fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_void_single_task_error\") {\n     sut = async(make_executor<0>(), [] { throw test_exception(\"failure\"); });\n \n     wait_until_future_fails<test_exception>(copy(sut));\n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_two_tasks_error_in_1st_task_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future void with two tasks which first fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_void_two_tasks_error_in_1st_task_with_same_scheduler\") {\n     {\n         atomic_int p{0};\n \n@@ -1176,8 +1087,8 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_error_in_1st_task_with_same_scheduler\n \n         wait_until_future_fails<test_exception>(copy(sut));\n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(0, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 0);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         atomic_int p{0};\n@@ -1187,14 +1098,13 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_error_in_1st_task_with_same_scheduler\n \n         wait_until_future_fails<test_exception>(copy(sut));\n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(0, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 0);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_void_two_tasks_error_in_2nd_task_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future void with two tasks which second fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_void_two_tasks_error_in_2nd_task_with_same_scheduler\") {\n     {\n         atomic_int p{0};\n \n@@ -1206,8 +1116,8 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_error_in_2nd_task_with_same_scheduler\n         wait_until_future_fails<test_exception>(copy(sut));\n \n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         atomic_int p{0};\n@@ -1220,14 +1130,12 @@ BOOST_AUTO_TEST_CASE(future_void_two_tasks_error_in_2nd_task_with_same_scheduler\n         wait_until_future_fails<test_exception>(copy(sut));\n \n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_void_to_void_error) {\n-    BOOST_TEST_MESSAGE(\"running future reduction void to void where the inner future fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"reduction_future_void_to_void_error\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -1241,8 +1149,8 @@ BOOST_AUTO_TEST_CASE(reduction_future_void_to_void_error) {\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n     {\n         atomic_bool first{false};\n@@ -1257,13 +1165,13 @@ BOOST_AUTO_TEST_CASE(reduction_future_void_to_void_error) {\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_void_when_inner_future_fails) {\n-    BOOST_TEST_MESSAGE(\"running future reduction move-only to void when inner future fails\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"reduction_future_move_only_to_void_when_inner_future_fails\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -1283,8 +1191,8 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_void_when_inner_future_fails)\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n     {\n         bool first{false};\n@@ -1305,28 +1213,20 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_void_when_inner_future_fails)\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_then_int_error, test_fixture<int>)\n-\n-BOOST_AUTO_TEST_CASE(future_int_single_task_error) {\n-    BOOST_TEST_MESSAGE(\"running future int with single tasks that fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_single_task_error\") {\n     sut = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_two_tasks_error_in_1st_task_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future int with two tasks which first fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_two_tasks_error_in_1st_task_with_same_scheduler\") {\n     {\n         custom_scheduler<0>::reset();\n         int p = 0;\n@@ -1341,8 +1241,8 @@ BOOST_AUTO_TEST_CASE(future_int_two_tasks_error_in_1st_task_with_same_scheduler)\n         wait_until_future_fails<test_exception>(copy(sut));\n \n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(0, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 0);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -1357,14 +1257,12 @@ BOOST_AUTO_TEST_CASE(future_int_two_tasks_error_in_1st_task_with_same_scheduler)\n         wait_until_future_fails<test_exception>(copy(sut));\n \n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(0, p);\n-        BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 0);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_two_tasks_error_in_2nd_task_with_same_scheduler) {\n-    BOOST_TEST_MESSAGE(\"running future void with two tasks which second fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_two_tasks_error_in_2nd_task_with_same_scheduler\") {\n     {\n         custom_scheduler<0>::reset();\n         atomic_int p{0};\n@@ -1376,8 +1274,8 @@ BOOST_AUTO_TEST_CASE(future_int_two_tasks_error_in_2nd_task_with_same_scheduler)\n         wait_until_future_fails<test_exception>(copy(sut));\n \n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n     {\n         custom_scheduler<0>::reset();\n@@ -1389,14 +1287,12 @@ BOOST_AUTO_TEST_CASE(future_int_two_tasks_error_in_2nd_task_with_same_scheduler)\n         wait_until_future_fails<test_exception>(copy(sut));\n \n         check_failure<test_exception>(sut, \"failure\");\n-        BOOST_REQUIRE_EQUAL(42, p);\n-        BOOST_REQUIRE_LE(2, custom_scheduler<0>::usage_counter());\n+        REQUIRE(p == 42);\n+        REQUIRE(custom_scheduler<0>::usage_counter() >= 2);\n     }\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_with_failing_1st_task) {\n-    BOOST_TEST_MESSAGE(\"running future int Y formation tasks where the 1st tasks fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_int_Y_formation_tasks_with_failing_1st_task\") {\n     atomic_int p{0};\n \n     sut = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n@@ -1413,13 +1309,12 @@ BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_with_failing_1st_task) {\n \n     check_failure<test_exception>(f1, \"failure\");\n     check_failure<test_exception>(f2, \"failure\");\n-    BOOST_REQUIRE_EQUAL(0, p);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(p == 0);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_where_one_of_the_2nd_task_failing) {\n-    BOOST_TEST_MESSAGE(\"running future int Y formation tasks where one of the 2nd tasks fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>,\n+                  \"future_int_Y_formation_tasks_where_one_of_the_2nd_task_failing\") {\n     sut = async(make_executor<0>(), []() -> int { return 42; });\n     auto f1 = sut.then(make_executor<0>(), [](auto) -> int { throw test_exception(\"failure\"); });\n     auto f2 = sut.then(make_executor<0>(), [](auto x) -> int { return x + 4711; });\n@@ -1428,13 +1323,12 @@ BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_where_one_of_the_2nd_task_fail\n     wait_until_future_fails<test_exception>(copy(f1));\n \n     check_failure<test_exception>(f1, \"failure\");\n-    BOOST_REQUIRE_EQUAL(42 + 4711, *f2.get_try());\n-    BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+    REQUIRE(*f2.get_try() == 42 + 4711);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n }\n \n-BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_where_both_of_the_2nd_task_failing) {\n-    BOOST_TEST_MESSAGE(\"running future int Y formation tasks where both of the 2nd tasks fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>,\n+                  \"future_int_Y_formation_tasks_where_both_of_the_2nd_task_failing\") {\n     sut = async(make_executor<0>(), []() -> int { return 42; });\n     auto f1 = sut.then(make_executor<0>(), [](auto) -> int { throw test_exception(\"failure\"); });\n     auto f2 = sut.then(make_executor<0>(), [](auto) -> int { throw test_exception(\"failure\"); });\n@@ -1443,11 +1337,10 @@ BOOST_AUTO_TEST_CASE(future_int_Y_formation_tasks_where_both_of_the_2nd_task_fai\n \n     check_failure<test_exception>(f1, \"failure\");\n     check_failure<test_exception>(f2, \"failure\");\n-    BOOST_REQUIRE_LE(3, custom_scheduler<0>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 3);\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_void_to_int_error) {\n-    BOOST_TEST_MESSAGE(\"running future reduction void to int where the outer future fails\");\n+TEST_CASE_FIXTURE(test_fixture<int>, \"reduction_future_void_to_int_error\") {\n     atomic_bool first{false};\n     atomic_bool second{false};\n \n@@ -1460,13 +1353,11 @@ BOOST_AUTO_TEST_CASE(reduction_future_void_to_int_error) {\n \n     wait_until_future_fails<test_exception>(std::move(sut));\n \n-    BOOST_REQUIRE(first);\n-    BOOST_REQUIRE(!second);\n+    REQUIRE(first);\n+    REQUIRE(!second);\n }\n \n-BOOST_AUTO_TEST_CASE(reduction_future_int_to_int_error) {\n-    BOOST_TEST_MESSAGE(\"running future reduction int to int where the inner future fails\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"reduction_future_int_to_int_error\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -1486,8 +1377,8 @@ BOOST_AUTO_TEST_CASE(reduction_future_int_to_int_error) {\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n     {\n         atomic_bool first{false};\n@@ -1510,17 +1401,13 @@ BOOST_AUTO_TEST_CASE(reduction_future_int_to_int_error) {\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_then_move_only_error, test_fixture<move_only>)\n-\n-BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_move_only_when_inner_future_fails) {\n-    BOOST_TEST_MESSAGE(\"running future reduction move-only to move-only when inner future fails\");\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"reduction_future_move_only_to_move_only_when_inner_future_fails\") {\n     {\n         atomic_bool first{false};\n         atomic_bool second{false};\n@@ -1540,8 +1427,8 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_move_only_when_inner_future_f\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n     {\n         bool first{false};\n@@ -1562,9 +1449,7 @@ BOOST_AUTO_TEST_CASE(reduction_future_move_only_to_move_only_when_inner_future_f\n \n         wait_until_future_fails<test_exception>(std::move(sut));\n \n-        BOOST_REQUIRE(first);\n-        BOOST_REQUIRE(second);\n+        REQUIRE(first);\n+        REQUIRE(second);\n     }\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"346f05aaea38728cbc0b66b4e70a945c7c625f12","filename":"test/future_when_all_arguments_tests.cpp","status":"modified","additions":56,"deletions":95,"changes":151,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_all_arguments_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_all_arguments_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_when_all_arguments_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -13,7 +13,7 @@\n #include <utility>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -28,24 +28,19 @@\n using namespace stlab;\n using namespace future_test_helper;\n \n-BOOST_FIXTURE_TEST_SUITE(future_when_all_args_int, test_fixture<int>)\n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with one element\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_with_one_element\") {\n     auto f1 = async(make_executor<0>(), [] { return 42; });\n     sut = when_all(make_executor<1>(), [](auto x) { return x + x; }, f1);\n \n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(*sut.get_try() == 42 + 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_many_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_all args int with many elements\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_with_many_elements\") {\n     auto f1 = async(make_executor<0>(), [] { return 1; });\n     auto f2 = async(make_executor<0>(), [] { return 2; });\n     auto f3 = async(make_executor<0>(), [] { return 3; });\n@@ -59,28 +54,24 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_many_elements) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(1 * 7 + 2 * 11 + 3 * 13 + 5 * 17, *sut.get_try());\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(*sut.get_try() == 1 * 7 + 2 * 11 + 3 * 13 + 5 * 17);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_ready_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with ready element\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_with_ready_element\") {\n     sut = when_all(\n         make_executor<1>(), [](auto x) { return x + x; },\n         make_ready_future<int>(42, immediate_executor));\n \n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(*sut.get_try() == 42 + 42);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_executor) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with ready element\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_with_executor\") {\n     sut = stlab::when_all(\n         make_executor<1>(), [](auto x, auto y) { return x + y; },\n         stlab::make_ready_future<int>(42, stlab::immediate_executor),\n@@ -89,13 +80,11 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_executor) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(*sut.get_try() == 42 + 42);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_two_ready_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with two ready element\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_with_two_ready_element\") {\n     sut = when_all(\n         make_executor<1>(), [](auto x, auto y) { return x + y; },\n         make_ready_future<int>(42, immediate_executor),\n@@ -104,25 +93,23 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_two_ready_element) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(42 + 42, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(*sut.get_try() == 42 + 42);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args) {\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args\") {\n     auto main_thread_id = std::this_thread::get_id();\n     auto r = when_all(\n         make_executor<1>(), [] { return std::this_thread::get_id(); },\n         make_ready_future(stlab::immediate_executor));\n \n     wait_until_future_completed(copy(r));\n \n-    BOOST_REQUIRE(main_thread_id != *r.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(main_thread_id != *r.get_try());\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_Arguments_with_mutable_task) {\n-    BOOST_TEST_MESSAGE(\"future when all arguments with mutable task\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_Arguments_with_mutable_task\") {\n     struct mutable_int {\n         int i = 0;\n         auto operator()() {\n@@ -145,11 +132,9 @@ BOOST_AUTO_TEST_CASE(future_when_all_Arguments_with_mutable_task) {\n             return func;\n         }));\n \n-    BOOST_REQUIRE_EQUAL(4, stlab::await(std::move(r)));\n+    REQUIRE(stlab::await(std::move(r)) == 4);\n }\n-BOOST_AUTO_TEST_CASE(future_when_all_arguments_with_mutable_move_onlytask) {\n-    BOOST_TEST_MESSAGE(\"future when all arguments with mutable move only task\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_arguments_with_mutable_move_onlytask\") {\n     struct mutable_move_only {\n         move_only i;\n         auto operator()() {\n@@ -172,14 +157,11 @@ BOOST_AUTO_TEST_CASE(future_when_all_arguments_with_mutable_move_onlytask) {\n             return std::move(func);\n         }));\n \n-    BOOST_REQUIRE_EQUAL(4, stlab::await(std::move(r)));\n+    REQUIRE(stlab::await(std::move(r)) == 4);\n }\n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_when_all_args_move_only, test_fixture<move_only>)\n-BOOST_AUTO_TEST_CASE(future_when_all_args_move_only_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all move_only with one element\");\n \n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_when_all_args_move_only_with_one_element\") {\n     auto f1 = async(make_executor<0>(), [] { return move_only(42); });\n     sut = when_all(\n         make_executor<1>(), [](auto x) { return move_only(x.member() + x.member()); },\n@@ -188,14 +170,13 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_move_only_with_one_element) {\n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(42 + 42, result.member());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(result.member() == 42 + 42);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_move_only_with_many_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_all args move_only with many elements\");\n-\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>,\n+                  \"future_when_all_args_move_only_with_many_elements\") {\n     auto f1 = async(make_executor<0>(), [] { return move_only(1); });\n     auto f2 = async(make_executor<0>(), [] { return move_only(2); });\n     auto f3 = async(make_executor<0>(), [] { return move_only(3); });\n@@ -212,17 +193,12 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_move_only_with_many_elements) {\n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(1 * 7 + 2 * 11 + 3 * 13 + 5 * 17, result.member());\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(result.member() == 1 * 7 + 2 * 11 + 3 * 13 + 5 * 17);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_when_all_args_string, test_fixture<std::string>)\n-BOOST_AUTO_TEST_CASE(future_when_all_args_with_different_types) {\n-    BOOST_TEST_MESSAGE(\"running future when_all args with different types\");\n-\n+TEST_CASE_FIXTURE(test_fixture<std::string>, \"future_when_all_args_with_different_types\") {\n     auto f1 = async(make_executor<0>(), [] { return 1; });\n     auto f2 = async(make_executor<0>(), [] { return 3.1415; });\n     auto f3 = async(make_executor<0>(), [] { return std::string(\"Don't panic!\"); });\n@@ -240,33 +216,27 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_with_different_types) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(std::string(\"1 3.1415 Don't panic! 3 3\"), *sut.get_try());\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((*sut.get_try() == std::string(\"1 3.1415 Don't panic! 3 3\")));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n-BOOST_AUTO_TEST_SUITE_END()\n \n // ----------------------------------------------------------------------------\n //                             Error cases\n // ----------------------------------------------------------------------------\n \n-BOOST_FIXTURE_TEST_SUITE(future_when_all_args_int_failure, test_fixture<int>)\n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_failure_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with range of one element\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_failure_with_one_element\") {\n     auto f1 = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n     sut = when_all(make_executor<1>(), [](auto x) { return x + x; }, f1);\n \n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_many_elements_one_failing) {\n-    BOOST_TEST_MESSAGE(\"running future when_all args int with many elements one failing\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_with_many_elements_one_failing\") {\n     auto f1 = async(make_executor<0>(), [] { return 1; });\n     auto f2 = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n     auto f3 = async(make_executor<0>(), [] { return 3; });\n@@ -280,13 +250,11 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_many_elements_one_failing) {\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_many_elements_all_failing) {\n-    BOOST_TEST_MESSAGE(\"running future when_all args int with many elements all failing\");\n-\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_args_int_with_many_elements_all_failing\") {\n     auto f1 = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n     auto f2 = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n     auto f3 = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n@@ -300,16 +268,12 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_int_with_many_elements_all_failing) {\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_when_all_args_string_failure, test_fixture<std::string>)\n-BOOST_AUTO_TEST_CASE(future_when_all_args_with_different_types_one_failing) {\n-    BOOST_TEST_MESSAGE(\"running future when_all args with different types one failing\");\n-\n+TEST_CASE_FIXTURE(test_fixture<std::string>,\n+                  \"future_when_all_args_with_different_types_one_failing\") {\n     auto f1 = async(make_executor<0>(), [] { return 1; });\n     auto f2 = async(make_executor<0>(), [] { return 3.1415; });\n     auto f3 = async(make_executor<0>(), []() -> std::string { throw test_exception(\"failure\"); });\n@@ -327,13 +291,12 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_with_different_types_one_failing) {\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_args_with_different_types_all_failing) {\n-    BOOST_TEST_MESSAGE(\"running future when_all args with different types all failing\");\n-\n+TEST_CASE_FIXTURE(test_fixture<std::string>,\n+                  \"future_when_all_args_with_different_types_all_failing\") {\n     auto f1 = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n     auto f2 = async(make_executor<0>(), []() -> double { throw test_exception(\"failure\"); });\n     auto f3 = async(make_executor<0>(), []() -> std::string { throw test_exception(\"failure\"); });\n@@ -352,8 +315,6 @@ BOOST_AUTO_TEST_CASE(future_when_all_args_with_different_types_all_failing) {\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"5fba2db265fc827d8d8b44b308b1e62dbb0e3d89","filename":"test/future_when_all_range_tests.cpp","status":"modified","additions":97,"deletions":132,"changes":229,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_all_range_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_all_range_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_when_all_range_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -15,7 +15,7 @@\n #include <utility>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -30,9 +30,7 @@\n using namespace stlab;\n using namespace future_test_helper;\n \n-BOOST_FIXTURE_TEST_SUITE(future_when_all_range_void, test_fixture<void>)\n-BOOST_AUTO_TEST_CASE(future_when_all_void_void_empty_range) {\n-    BOOST_TEST_MESSAGE(\"running future when_all void -> void with empty range\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_void_empty_range\") {\n     bool check = {false};\n     std::vector<stlab::future<void>> emptyFutures;\n \n@@ -43,12 +41,11 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_void_empty_range) {\n     check_valid_future(sut);\n     wait_until_future_completed(std::move(sut));\n \n-    BOOST_REQUIRE(check);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE(check);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_empty_range) {\n-    BOOST_TEST_MESSAGE(\"running future when_all void with empty range\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_empty_range\") {\n     size_t p = 0;\n     std::vector<stlab::future<int>> emptyFutures;\n \n@@ -59,12 +56,11 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_empty_range) {\n     check_valid_future(sut);\n     wait_until_future_completed(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(0), p);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE((p == size_t(0)));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all void with range of one element\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_range_with_one_element\") {\n     size_t p = 0;\n     size_t r = 0;\n     std::vector<stlab::future<int>> futures;\n@@ -81,13 +77,13 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_one_element) {\n     check_valid_future(sut);\n     wait_until_future_completed(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(1), p);\n-    BOOST_REQUIRE_EQUAL(size_t(42), r);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(1)));\n+    REQUIRE((r == size_t(42)));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_all_delayed) {\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_range_with_all_delayed\") {\n     using namespace std::chrono_literals;\n \n     stlab::serial_queue_t const seriel_queue_1{stlab::default_executor};\n@@ -113,11 +109,10 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_all_delayed) {\n \n     stlab::await(std::move(done_future));\n \n-    BOOST_REQUIRE(done);\n+    REQUIRE(done);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_all void with range with many elements\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_range_with_many_elements\") {\n     size_t p = 0;\n     size_t r = 0;\n     std::vector<stlab::future<int>> futures;\n@@ -139,15 +134,14 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements) {\n     check_valid_future(sut);\n     wait_until_future_completed(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(4), p);\n-    BOOST_REQUIRE_EQUAL(size_t(1 + 2 + 3 + 5), r);\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(4)));\n+    REQUIRE((r == size_t(1 + 2 + 3 + 5)));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements_and_immediate_continuation) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_all void with range with many elements and immediate continuation\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_when_all_void_range_with_many_elements_and_immediate_continuation\") {\n     size_t p = 0;\n     size_t r = 0;\n     std::vector<stlab::future<int>> futures;\n@@ -169,9 +163,9 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements_and_immediate\n     check_valid_future(sut);\n     wait_until_future_completed(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(1000), p);\n-    BOOST_REQUIRE_EQUAL(size_t(1000), r);\n-    BOOST_REQUIRE_LE(1000, custom_scheduler<0>::usage_counter());\n+    REQUIRE((p == size_t(1000)));\n+    REQUIRE((r == size_t(1000)));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1000);\n }\n \n /*\n@@ -181,8 +175,8 @@ start           sut\n       \\ \\ F3 / /\n        \\  F4  /\n */\n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_diamond_formation_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_all void with range with diamond formation\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_when_all_void_range_with_diamond_formation_elements\") {\n     std::array v{0, 0, 0, 0};\n     int r = 0;\n     auto start = async(make_executor<0>(), [] { return 4711; });\n@@ -204,16 +198,12 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_diamond_formation_elements)\n     check_valid_future(sut);\n     wait_until_future_completed(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(4711 + 1 + 4711 + 2 + 4711 + 3 + 4711 + 5, r);\n-    BOOST_REQUIRE_LE(5, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(r == 4711 + 1 + 4711 + 2 + 4711 + 3 + 4711 + 5);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 5);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_when_all_range_int, test_fixture<int>)\n-BOOST_AUTO_TEST_CASE(future_when_all_int_empty_range) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with empty range\");\n \n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_int_empty_range\") {\n     std::vector<stlab::future<int>> emptyFutures;\n \n     sut = when_all(\n@@ -222,12 +212,11 @@ BOOST_AUTO_TEST_CASE(future_when_all_int_empty_range) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(0, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n+    REQUIRE((*sut.get_try() == 0));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_int_range_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with range of one element\");\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_int_range_with_one_element\") {\n     size_t p = 0;\n     std::vector<stlab::future<int>> futures;\n     futures.push_back(async(make_executor<0>(), [] { return 42; }));\n@@ -243,14 +232,13 @@ BOOST_AUTO_TEST_CASE(future_when_all_int_range_with_one_element) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(1), p);\n-    BOOST_REQUIRE_EQUAL(42, *sut.get_try());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(1)));\n+    REQUIRE((*sut.get_try() == 42));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_int_range_with_many_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with range with many elements\");\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_int_range_with_many_elements\") {\n     size_t p = 0;\n     std::vector<stlab::future<int>> futures;\n     futures.push_back(async(make_executor<0>(), [] { return 1; }));\n@@ -273,10 +261,10 @@ BOOST_AUTO_TEST_CASE(future_when_all_int_range_with_many_elements) {\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(4), p);\n-    BOOST_REQUIRE_EQUAL(1 + 2 + 3 + 5, *sut.get_try());\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(4)));\n+    REQUIRE((*sut.get_try() == 1 + 2 + 3 + 5));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n /*\n@@ -286,8 +274,7 @@ start           sut\n       \\ \\ F3 / /\n        \\  F4  /\n */\n-BOOST_AUTO_TEST_CASE(future_when_all_int_range_with_diamond_formation_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_all int with range with diamond formation\");\n+TEST_CASE_FIXTURE(test_fixture<int>, \"future_when_all_int_range_with_diamond_formation_elements\") {\n     size_t p = 0;\n     auto start = async(make_executor<0>(), [] { return 4711; });\n     std::vector<stlab::future<int>> futures(4);\n@@ -311,18 +298,13 @@ BOOST_AUTO_TEST_CASE(future_when_all_int_range_with_diamond_formation_elements)\n     check_valid_future(sut);\n     wait_until_future_completed(copy(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(4), p);\n-    BOOST_REQUIRE_EQUAL(4711 + 1 + 4711 + 2 + 4711 + 3 + 4711 + 5, *sut.get_try());\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(4)));\n+    REQUIRE((*sut.get_try() == 4711 + 1 + 4711 + 2 + 4711 + 3 + 4711 + 5));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_when_all_range_move_only, test_fixture<stlab::move_only>)\n-\n-BOOST_AUTO_TEST_CASE(future_when_all_move_range_with_many_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_all move_only with range with many elements\");\n+TEST_CASE_FIXTURE(test_fixture<stlab::move_only>, \"future_when_all_move_range_with_many_elements\") {\n     size_t p = 0;\n     std::vector<stlab::future<stlab::move_only>> futures;\n     futures.push_back(async(make_executor<0>(), [] { return stlab::move_only{1}; }));\n@@ -345,16 +327,13 @@ BOOST_AUTO_TEST_CASE(future_when_all_move_range_with_many_elements) {\n     check_valid_future(sut);\n     auto result = await(std::move(sut));\n \n-    BOOST_REQUIRE_EQUAL(size_t(4), p);\n-    BOOST_REQUIRE_EQUAL(1 + 2 + 3 + 5, result.member());\n-    BOOST_REQUIRE_LE(4, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(4)));\n+    REQUIRE(result.member() == 1 + 2 + 3 + 5);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 4);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_AUTO_TEST_CASE(future_when_all_range_with_mutable_task) {\n-    BOOST_TEST_MESSAGE(\"future when all range with mutable task\");\n \n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_range_with_mutable_task\") {\n     struct mutable_int {\n         int i = 0;\n         auto operator()() {\n@@ -374,20 +353,18 @@ BOOST_AUTO_TEST_CASE(future_when_all_range_with_mutable_task) {\n             func();\n             return func;\n         })};\n-    auto sut = when_all(\n+    auto result = when_all(\n         stlab::default_executor,\n-        [](auto result) {\n-            return std::accumulate(result.begin(), result.end(), 0,\n+        [](auto result_vec) {\n+            return std::accumulate(result_vec.begin(), result_vec.end(), 0,\n                                    [](int sum, auto f) { return sum + f(); });\n         },\n         std::make_pair(futures.begin(), futures.end()));\n \n-    BOOST_REQUIRE_EQUAL(4, stlab::await(std::move(sut)));\n+    REQUIRE(stlab::await(std::move(result)) == 4);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_range_with_mutable_void_task) {\n-    BOOST_TEST_MESSAGE(\"future when all range with mutable void task\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_range_with_mutable_void_task\") {\n     std::atomic_int check{0};\n     struct mutable_int {\n         std::atomic_int& _check;\n@@ -404,22 +381,20 @@ BOOST_AUTO_TEST_CASE(future_when_all_range_with_mutable_void_task) {\n         async(stlab::default_executor, [func = func1]() mutable { func(); }),\n         async(stlab::default_executor, [func = func2]() mutable { func(); })};\n \n-    future<void> sut = when_all(\n+    future<void> result = when_all(\n         stlab::default_executor, [_func = mutable_int{check}]() mutable { _func(); },\n         std::make_pair(futures.begin(), futures.end()));\n \n-    stlab::await(std::move(sut));\n+    stlab::await(std::move(result));\n \n-    BOOST_REQUIRE_EQUAL(3, check);\n+    REQUIRE(check == 3);\n }\n \n // ----------------------------------------------------------------------------\n //                             Error cases\n // ----------------------------------------------------------------------------\n \n-BOOST_FIXTURE_TEST_SUITE(future_when_all_range_void_error, test_fixture<void>)\n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_all void with range of one failing element\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_range_with_one_element\") {\n     size_t p = 0;\n     size_t r = 0;\n     std::vector<stlab::future<int>> futures;\n@@ -436,15 +411,13 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_one_element) {\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_EQUAL(size_t(0), p);\n-    BOOST_REQUIRE_EQUAL(size_t(0), r);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(0)));\n+    REQUIRE((r == size_t(0)));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements_one_failing) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_all void with range with many elements and one failing\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_range_with_many_elements_one_failing\") {\n     size_t p = 0;\n     size_t r = 0;\n     std::vector<stlab::future<int>> futures;\n@@ -466,15 +439,13 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements_one_failing)\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_EQUAL(size_t(0), p);\n-    BOOST_REQUIRE_EQUAL(size_t(0), r);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(0)));\n+    REQUIRE((r == size_t(0)));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements_all_failing) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_all void with range with many elements and all failing\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_all_void_range_with_many_elements_all_failing\") {\n     size_t p = 0;\n     size_t r = 0;\n     std::vector<stlab::future<int>> futures;\n@@ -496,10 +467,10 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_many_elements_all_failing)\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_EQUAL(size_t(0), p);\n-    BOOST_REQUIRE_EQUAL(size_t(0), r);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE((p == size_t(0)));\n+    REQUIRE((r == size_t(0)));\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n /*\n@@ -509,9 +480,8 @@ start           sut\n       \\ \\ F3 / /\n        \\  F4  /\n */\n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_diamond_formation_elements_start_failing) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_all void with range with diamond formation and start failing\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_when_all_void_range_with_diamond_formation_elements_start_failing\") {\n     std::array v{0, 0, 0, 0};\n     int r = 0;\n     auto start = async(make_executor<0>(), []() -> int { throw test_exception(\"failure\"); });\n@@ -533,18 +503,17 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_diamond_formation_elements_\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_EQUAL(0, r);\n+    REQUIRE(r == 0);\n     for (auto d : v) {\n-        BOOST_REQUIRE_EQUAL(0, d);\n+        REQUIRE(d == 0);\n     }\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_when_all_void_range_with_diamond_formation_elements_one_parallel_failing) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_all void with range with diamond formation and one of the parallel tasks is failing\");\n+TEST_CASE_FIXTURE(\n+    test_fixture<void>,\n+    \"future_when_all_void_range_with_diamond_formation_elements_one_parallel_failing\") {\n     std::array v{0, 0, 0, 0};\n     int r = 0;\n     auto start = async(make_executor<0>(), []() -> int { return 42; });\n@@ -566,14 +535,13 @@ BOOST_AUTO_TEST_CASE(\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_EQUAL(0, r);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(r == 0);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_diamond_formation_elements_join_failing) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_all void with range with diamond formation and the joining tasks is failing\");\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_when_all_void_range_with_diamond_formation_elements_join_failing\") {\n     std::array v{0, 0, 0, 0};\n     int const r = 0;\n     auto start = async(make_executor<0>(), []() -> int { return 42; });\n@@ -590,15 +558,14 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_range_with_diamond_formation_elements_\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_EQUAL(0, r);\n-    BOOST_REQUIRE_LE(1, custom_scheduler<0>::usage_counter());\n-    BOOST_REQUIRE_LE(1, custom_scheduler<1>::usage_counter());\n+    REQUIRE(r == 0);\n+    REQUIRE(custom_scheduler<0>::usage_counter() >= 1);\n+    REQUIRE(custom_scheduler<1>::usage_counter() >= 1);\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_when_all_void_range_with_one_fails_ofmany_elements_and_immediate_continuation) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_all void with range with one fails one of manyelements and immediate continuation\");\n+TEST_CASE_FIXTURE(\n+    test_fixture<void>,\n+    \"future_when_all_void_range_with_one_fails_ofmany_elements_and_immediate_continuation\") {\n     size_t p = 0;\n     size_t r = 0;\n     std::vector<stlab::future<int>> futures;\n@@ -625,7 +592,5 @@ BOOST_AUTO_TEST_CASE(\n     wait_until_future_fails<test_exception>(copy(sut));\n \n     check_failure<test_exception>(sut, \"failure\");\n-    BOOST_REQUIRE_EQUAL(0u, r);\n+    REQUIRE(r == 0u);\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"c5fadec2aba51adceca7221bb8143e557df20adf","filename":"test/future_when_any_arguments_tests.cpp","status":"modified","additions":24,"deletions":45,"changes":69,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_any_arguments_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_any_arguments_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_when_any_arguments_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -9,10 +9,9 @@\n #include <cstddef>\n #include <exception>\n #include <mutex>\n-#include <string_view>\n #include <utility>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/future.hpp>\n@@ -27,21 +26,16 @@ using namespace future_test_helper;\n \n using lock_t = std::unique_lock<std::mutex>;\n \n-BOOST_FIXTURE_TEST_SUITE(future_when_any_arg_void, test_fixture<void>)\n-BOOST_AUTO_TEST_CASE(future_when_any_with_one_argument) {\n-    BOOST_TEST_MESSAGE(\"running future when_any one argument\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_any_with_one_argument\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto result = when_any(immediate_executor, when_any_result, std::move(f0));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p0));\n-    BOOST_REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_multiple_arguments_first_succeeds) {\n-    BOOST_TEST_MESSAGE(\"running future when_any with multiple arguments and the first succeeds\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_any_multiple_arguments_first_succeeds\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto [p1, f1] = package<int()>(immediate_executor, [] { return 1; });\n     auto [p2, f2] = package<int()>(immediate_executor, [] { return 2; });\n@@ -50,14 +44,12 @@ BOOST_AUTO_TEST_CASE(future_when_any_multiple_arguments_first_succeeds) {\n     auto result = when_any(immediate_executor, when_any_result, std::move(f0), std::move(f1),\n                            std::move(f2), std::move(f3));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p0));\n-    BOOST_REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_multiple_arguments_third_succeeds) {\n-    BOOST_TEST_MESSAGE(\"running future when_any with multiple arguments and the third succeeds\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_any_multiple_arguments_third_succeeds\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto [p1, f1] = package<int()>(immediate_executor, [] { return 1; });\n     auto [p2, f2] = package<int()>(immediate_executor, [] { return 2; });\n@@ -66,14 +58,12 @@ BOOST_AUTO_TEST_CASE(future_when_any_multiple_arguments_third_succeeds) {\n     auto result = when_any(immediate_executor, when_any_result, std::move(f0), std::move(f1),\n                            std::move(f2), std::move(f3));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p2));\n-    BOOST_REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n+    REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_one_succeeds_all_others_fail) {\n-    BOOST_TEST_MESSAGE(\"running future when_any one succeeds and all others fail\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_any_one_succeeds_all_others_fail\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto [p1, f1] = package<int()>(immediate_executor, [] { return 1; });\n     auto [p2, f2] = package<int()>(immediate_executor, [] { return 2; });\n@@ -85,13 +75,12 @@ BOOST_AUTO_TEST_CASE(future_when_any_one_succeeds_all_others_fail) {\n     p0.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n     p1.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n     p3.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p2));\n-    BOOST_REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n+    REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_all_fail) {\n-    BOOST_TEST_MESSAGE(\"running future when_any all fail\");\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_any_all_fail\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto [p1, f1] = package<int()>(immediate_executor, [] { return 1; });\n     auto [p2, f2] = package<int()>(immediate_executor, [] { return 2; });\n@@ -103,12 +92,10 @@ BOOST_AUTO_TEST_CASE(future_when_any_all_fail) {\n     p0.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n     p1.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n     p2.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     p3.set_exception(std::make_exception_ptr(test_exception(\"failure-final\")));\n-    BOOST_REQUIRE(result.is_ready());\n-    BOOST_REQUIRE_EXCEPTION((void)result.get_try(), test_exception, ([](const auto& e) {\n-                                return std::string_view(e.what()) == \"failure-final\";\n-                            }));\n+    REQUIRE(result.is_ready());\n+    REQUIRE_THROWS_AS((void)result.get_try(), test_exception);\n }\n \n /*\n@@ -118,9 +105,8 @@ start           sut\n      \\ \\ f3 / /\n       \\  f4  /\n */\n-BOOST_AUTO_TEST_CASE(future_when_any_int_arguments_with_diamond_formation_arguments) {\n-    BOOST_TEST_MESSAGE(\"running future when_any int arguments with diamond formation\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>,\n+                  \"future_when_any_int_arguments_with_diamond_formation_arguments\") {\n     auto [initial_promise, start] = package<int()>(immediate_executor, [] { return 42; });\n     auto f1 = start | [](int x) { return x + 1; };\n     auto f2 = start | [](int x) { return x + 2; };\n@@ -130,25 +116,18 @@ BOOST_AUTO_TEST_CASE(future_when_any_int_arguments_with_diamond_formation_argume\n     auto result = when_any(immediate_executor, when_any_result, std::move(f1), std::move(f2),\n                            std::move(f3), std::move(f4));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(initial_promise));\n-    BOOST_REQUIRE((std::pair{43, std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{43, std::size_t{0}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_when_any_argument_move_only, test_fixture<move_only>)\n-BOOST_AUTO_TEST_CASE(future_when_any_move_only_arguments) {\n-    BOOST_TEST_MESSAGE(\"running future when_any with move-only arguments\");\n-\n+TEST_CASE_FIXTURE(test_fixture<void>, \"future_when_any_move_only_arguments\") {\n     auto [p0, f0] = package<move_only()>(immediate_executor, [] { return move_only(0); });\n     auto [p1, f1] = package<move_only()>(immediate_executor, [] { return move_only(1); });\n \n     auto result = when_any(immediate_executor, when_any_result, std::move(f0), std::move(f1));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p0));\n-    BOOST_REQUIRE((std::pair{move_only(0), std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{move_only(0), std::size_t{0}} == await(std::move(result))));\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"ff38d32c376e91c9d5e45a76cf230eb994787c8d","filename":"test/future_when_any_range_tests.cpp","status":"modified","additions":31,"deletions":70,"changes":101,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_any_range_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ffuture_when_any_range_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_when_any_range_tests.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -11,10 +11,9 @@\n #include <exception>\n #include <mutex>\n #include <optional>\n-#include <string_view>\n #include <utility>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -35,53 +34,37 @@ auto range_pair(T& r) {\n     return std::pair{r.begin(), r.end()};\n }\n \n-BOOST_FIXTURE_TEST_SUITE(future_when_any_range_void, test_fixture<void>)\n-BOOST_AUTO_TEST_CASE(future_when_any_void_void_empty_range) {\n-    BOOST_TEST_MESSAGE(\"running future when_any void void with empty range\");\n-\n+TEST_CASE(\"future_when_any_void_void_empty_range\") {\n     auto result = when_any(immediate_executor, when_any_result,\n                            std::pair<future<void>*, future<void>*>{nullptr, nullptr});\n-    BOOST_REQUIRE_EXCEPTION((void)result.get_try(), future_error, [](const auto& e) {\n-        return e.code() == future_error_codes::broken_promise;\n-    });\n+    REQUIRE_THROWS_AS((void)result.get_try(), future_error);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_int_void_empty_range) {\n-    BOOST_TEST_MESSAGE(\"running future when_any int void with empty range\");\n-\n+TEST_CASE(\"future_when_any_int_void_empty_range\") {\n     auto result = when_any(immediate_executor, when_any_result,\n                            std::pair<future<int>*, future<int>*>{nullptr, nullptr});\n-    BOOST_REQUIRE_EXCEPTION((void)result.get_try(), future_error, [](const auto& e) {\n-        return e.code() == future_error_codes::broken_promise;\n-    });\n+    REQUIRE_THROWS_AS((void)result.get_try(), future_error);\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_void_void_range_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_any void void with one element\");\n-\n+TEST_CASE(\"future_when_any_void_void_range_with_one_element\") {\n     auto [p0, f0] = package<void()>(immediate_executor, [] {});\n     auto result = when_any(immediate_executor, when_any_result, std::pair{&f0, &f0 + 1});\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p0));\n-    BOOST_REQUIRE((std::size_t{0} == await(std::move(result))));\n+    REQUIRE((std::size_t{0} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_int_void_range_with_one_element) {\n-    BOOST_TEST_MESSAGE(\"running future when_any int void with range of one element\");\n-\n+TEST_CASE(\"future_when_any_int_void_range_with_one_element\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto result = when_any(immediate_executor, when_any_result, std::pair{&f0, &f0 + 1});\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p0));\n-    BOOST_REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_int_void_range_with_many_elements_first_succeeds) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_any int void with range with many elements and the first succeeds\");\n-\n+TEST_CASE(\"future_when_any_int_void_range_with_many_elements_first_succeeds\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto [p1, f1] = package<int()>(immediate_executor, [] { return 1; });\n     auto [p2, f2] = package<int()>(immediate_executor, [] { return 2; });\n@@ -91,15 +74,12 @@ BOOST_AUTO_TEST_CASE(future_when_any_int_void_range_with_many_elements_first_suc\n \n     auto result = when_any(immediate_executor, when_any_result, range_pair(a));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p0));\n-    BOOST_REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{0, std::size_t{0}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_int_void_range_with_many_elements_middle_succeeds) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_any int void with range with many elements and one in the middle succeeds\");\n-\n+TEST_CASE(\"future_when_any_int_void_range_with_many_elements_middle_succeeds\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto [p1, f1] = package<int()>(immediate_executor, [] { return 1; });\n     auto [p2, f2] = package<int()>(immediate_executor, [] { return 2; });\n@@ -109,16 +89,12 @@ BOOST_AUTO_TEST_CASE(future_when_any_int_void_range_with_many_elements_middle_su\n \n     auto result = when_any(immediate_executor, when_any_result, range_pair(a));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p2));\n-    BOOST_REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n+    REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(\n-    future_when_any_int_void_range_with_many_elements_one_succeeds_all_other_fails) {\n-    BOOST_TEST_MESSAGE(\n-        \"running future when_any int void with range with many elements and one succeeds all other fails\");\n-\n+TEST_CASE(\"future_when_any_int_void_range_with_many_elements_one_succeeds_all_other_fails\") {\n     auto [p0, f0] = package<int()>(immediate_executor, [] { return 0; });\n     auto [p1, f1] = package<int()>(immediate_executor, [] { return 1; });\n     auto [p2, f2] = package<int()>(immediate_executor, [] { return 2; });\n@@ -131,35 +107,29 @@ BOOST_AUTO_TEST_CASE(\n     p0.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n     p1.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n     p3.set_exception(std::make_exception_ptr(test_exception(\"failure\")));\n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p2));\n-    BOOST_REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n+    REQUIRE((std::pair{2, std::size_t{2}} == await(std::move(result))));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_void_all_are_ready_at_the_beginning) {\n-    BOOST_TEST_MESSAGE(\"running future when_any void when all futures are ready from the start\");\n-\n+TEST_CASE(\"future_when_any_void_all_are_ready_at_the_beginning\") {\n     std::array a{make_ready_future(immediate_executor), make_ready_future(immediate_executor)};\n \n     auto result = when_any(immediate_executor, when_any_result, range_pair(a));\n \n-    BOOST_REQUIRE((0 == *result.get_try()));\n+    REQUIRE((0 == *result.get_try()));\n }\n \n-BOOST_AUTO_TEST_CASE(future_when_any_int_void_range_with_many_elements_all_fails) {\n-    BOOST_TEST_MESSAGE(\"running future when_any void with range all fails\");\n-\n+TEST_CASE(\"future_when_any_int_void_range_with_many_elements_all_fails\") {\n     std::array a{make_exceptional_future<void>(std::make_exception_ptr(test_exception(\"failure\")),\n                                                immediate_executor),\n                  make_exceptional_future<void>(\n                      std::make_exception_ptr(test_exception(\"failure-final\")), immediate_executor)};\n \n     auto result = when_any(immediate_executor, when_any_result, range_pair(a));\n \n-    BOOST_REQUIRE(result.is_ready());\n-    BOOST_REQUIRE_EXCEPTION((void)result.get_try(), test_exception, ([](const auto& e) {\n-                                return std::string_view(e.what()) == \"failure-final\";\n-                            }));\n+    REQUIRE(result.is_ready());\n+    REQUIRE_THROWS_AS((void)result.get_try(), test_exception);\n }\n \n /*\n@@ -169,9 +139,7 @@ start           sut\n     \\ \\ F3 / /\n      \\  F4  /\n */\n-BOOST_AUTO_TEST_CASE(future_when_any_void_range_with_diamond_formation_elements) {\n-    BOOST_TEST_MESSAGE(\"running future when_any void with range with diamond formation\");\n-\n+TEST_CASE(\"future_when_any_void_range_with_diamond_formation_elements\") {\n     auto [initial_promise, start] = package<int()>(immediate_executor, [] { return 42; });\n     auto f1 = start | [](int x) { return x + 1; };\n     auto f2 = start | [](int x) { return x + 2; };\n@@ -181,27 +149,20 @@ BOOST_AUTO_TEST_CASE(future_when_any_void_range_with_diamond_formation_elements)\n     std::array a{std::move(f1), std::move(f2), std::move(f3), std::move(f4)};\n     auto result = when_any(immediate_executor, when_any_result, range_pair(a));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(initial_promise));\n-    BOOST_REQUIRE((std::pair{43, std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{43, std::size_t{0}} == await(std::move(result))));\n }\n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_FIXTURE_TEST_SUITE(future_when_any_range_move_only, test_fixture<stlab::move_only>)\n-\n-BOOST_AUTO_TEST_CASE(future_when_any_range_move_only) {\n-    BOOST_TEST_MESSAGE(\"running future when_any rang with move-only arguments\");\n \n+TEST_CASE(\"future_when_any_range_move_only\") {\n     auto [p0, f0] = package<move_only()>(immediate_executor, [] { return move_only(0); });\n     auto [p1, f1] = package<move_only()>(immediate_executor, [] { return move_only(1); });\n \n     std::array a{std::move(f0), std::move(f1)};\n \n     auto result = when_any(immediate_executor, when_any_result, range_pair(a));\n \n-    BOOST_REQUIRE(!result.is_ready());\n+    REQUIRE(!result.is_ready());\n     default_executor(std::move(p0));\n-    BOOST_REQUIRE((std::pair{move_only(0), std::size_t{0}} == await(std::move(result))));\n+    REQUIRE((std::pair{move_only(0), std::size_t{0}} == await(std::move(result))));\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"4614bfd206e221a45055bf2a2c1c18f001d52906","filename":"test/main.cpp","status":"modified","additions":12,"deletions":12,"changes":24,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fmain.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fmain.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fmain.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -6,17 +6,17 @@\n \n /**************************************************************************************************/\n \n-#include <stlab/pre_exit.hpp>\n-\n-#define BOOST_TEST_MODULE stlab_libraries_tests\n-#include <boost/test/unit_test.hpp>\n-\n-namespace stlab_test {\n+#define DOCTEST_CONFIG_IMPLEMENT\n+#include <doctest/doctest.h>\n \n-struct pre_exit_fixture {\n-    void teardown() { stlab::pre_exit(); }\n-};\n-\n-BOOST_TEST_GLOBAL_FIXTURE(pre_exit_fixture);\n+#include <stlab/pre_exit.hpp>\n \n-} // namespace stlab_test\n+int main(int argc, char** argv) {\n+    doctest::Context ctx;\n+    ctx.applyCommandLine(argc, argv);\n+    int res = ctx.run();\n+    if (ctx.shouldExit())\n+        return res;\n+    stlab::pre_exit();\n+    return res;\n+}"},{"sha":"b23719524ae5c4d00c9140efb2525c799cd872f6","filename":"test/serial_queue_test.cpp","status":"modified","additions":2,"deletions":2,"changes":4,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fserial_queue_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fserial_queue_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fserial_queue_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -8,7 +8,7 @@\n #include <utility>\n #include <vector>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/default_executor.hpp>\n@@ -192,7 +192,7 @@ void test1(stlab::schedule_mode mode) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(serial_queue_interface) {\n+TEST_CASE(\"serial_queue_interface\") {\n     test0(stlab::schedule_mode::single);\n \n     std::cout << \"-=-=-=-=-\\n\";"},{"sha":"37b8aa3b1a20b805cb1452ea12b7fd71ce556a4f","filename":"test/system_timer_test.cpp","status":"modified","additions":6,"deletions":5,"changes":11,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fsystem_timer_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Fsystem_timer_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Fsystem_timer_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -4,26 +4,27 @@\n #include <chrono>\n #include <utility>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n+#include <stlab/concurrency/await.hpp>\n #include <stlab/concurrency/future.hpp>\n #include <stlab/concurrency/immediate_executor.hpp>\n-#include <stlab/concurrency/await.hpp>\n+\n \n /**************************************************************************************************/\n \n using namespace stlab;\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(system_timer_cancellation) {\n+TEST_CASE(\"system_timer_cancellation\") {\n     // Test to ensure that a task scheduled after pre_exit() is not executed\n-    system_timer(std::chrono::hours(1), []() noexcept { BOOST_CHECK(false); });\n+    system_timer(std::chrono::hours(1), []() noexcept { FAIL(\"\"); });\n \n     auto [task, future] = package<int()>(immediate_executor, [] { return 42; });\n     system_timer(std::chrono::seconds(0), std::move(task));\n \n-    BOOST_CHECK_EQUAL(await(std::move(future)), 42);\n+    REQUIRE(await(std::move(future)) == 42);\n }\n \n /**************************************************************************************************/"},{"sha":"7b111e14726fc18b80ccbc6f3531a96300b8ca22","filename":"test/task_test.cpp","status":"modified","additions":62,"deletions":62,"changes":124,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftask_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftask_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ftask_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -14,7 +14,7 @@\n #include <utility>\n \n // boost\n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n // stlab\n #include <stlab/concurrency/task.hpp>\n@@ -26,9 +26,9 @@ using namespace stlab;\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(task_argument_test) {\n+TEST_CASE(\"task_argument_test\") {\n     {\n-        task<void(const regular&)> t([](const regular& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(const regular&)> t([](const regular& a) { REQUIRE(a._x == 42); });\n         t(regular{42}); // rvalue->const &\n         regular a{42};\n         t(a); // lvalue->const &\n@@ -37,23 +37,23 @@ BOOST_AUTO_TEST_CASE(task_argument_test) {\n     }\n \n     {\n-        task<void(regular&)> t([](regular& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(regular&)> t([](regular& a) { REQUIRE(a._x == 42); });\n         regular a{42};\n         t(a); // lvalue->&\n     }\n \n     {\n-        task<void(move_only&&)> t([](move_only&& a) { BOOST_CHECK_EQUAL(a.member(), 42); });\n+        task<void(move_only&&)> t([](move_only&& a) { REQUIRE(a.member() == 42); });\n         t(move_only{42}); // rvalue->&&\n     }\n \n     {\n-        task<void(move_only)> t([](move_only a) { BOOST_CHECK_EQUAL(a.member(), 42); });\n+        task<void(move_only)> t([](move_only a) { REQUIRE(a.member() == 42); });\n         t(move_only{42}); // rvalue->value\n     }\n \n     {\n-        task<void(regular)> t([](const regular& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(regular)> t([](const regular& a) { REQUIRE(a._x == 42); });\n         t(regular{42}); // rvalue->value\n         regular a{42};\n         t(a); // lvalue->value\n@@ -63,7 +63,7 @@ BOOST_AUTO_TEST_CASE(task_argument_test) {\n \n     // These test mismatched task signature to lambda signature\n     {\n-        task<void(const regular&)> t([](const regular& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(const regular&)> t([](const regular& a) { REQUIRE(a._x == 42); });\n         t(regular{42}); // rvalue->const &\n         regular a{42};\n         t(a); // lvalue->const &\n@@ -72,39 +72,39 @@ BOOST_AUTO_TEST_CASE(task_argument_test) {\n     }\n \n     {\n-        task<void(regular&)> t([](const regular& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(regular&)> t([](const regular& a) { REQUIRE(a._x == 42); });\n         regular a{42};\n         t(a); // lvalue->&\n     }\n \n     {\n-        task<void(regular&)> t([](const regular& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(regular&)> t([](const regular& a) { REQUIRE(a._x == 42); });\n         regular a{42};\n         t(a); // lvalue->&\n     }\n \n     {\n-        task<void(move_only&&)> t([](const move_only& a) { BOOST_CHECK_EQUAL(a.member(), 42); });\n+        task<void(move_only&&)> t([](const move_only& a) { REQUIRE(a.member() == 42); });\n         t(move_only{42}); // rvalue->&&\n     }\n \n     {\n-        task<void(move_only&&)> t([](move_only a) { BOOST_CHECK_EQUAL(a.member(), 42); });\n+        task<void(move_only&&)> t([](move_only a) { REQUIRE(a.member() == 42); });\n         t(move_only{42}); // rvalue->&&\n     }\n \n     {\n-        task<void(move_only)> t([](const move_only& a) { BOOST_CHECK_EQUAL(a.member(), 42); });\n+        task<void(move_only)> t([](const move_only& a) { REQUIRE(a.member() == 42); });\n         t(move_only{42}); // rvalue->value\n     }\n \n     {\n-        task<void(move_only)> t([](move_only&& a) { BOOST_CHECK_EQUAL(a.member(), 42); });\n+        task<void(move_only)> t([](move_only&& a) { REQUIRE(a.member() == 42); });\n         t(move_only{42}); // rvalue->value\n     }\n \n     {\n-        task<void(regular)> t([](const regular& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(regular)> t([](const regular& a) { REQUIRE(a._x == 42); });\n         t(regular{42}); // rvalue->value\n         regular a{42};\n         t(a); // lvalue->value\n@@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(task_argument_test) {\n     }\n \n     {\n-        task<void(regular)> t([](regular&& a) { BOOST_CHECK_EQUAL(a._x, 42); });\n+        task<void(regular)> t([](regular&& a) { REQUIRE(a._x == 42); });\n         t(regular{42}); // rvalue->value\n         regular a{42};\n         t(a); // lvalue->value\n@@ -124,88 +124,88 @@ BOOST_AUTO_TEST_CASE(task_argument_test) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(task_nullary_tests) {\n+TEST_CASE(\"task_nullary_tests\") {\n     {\n         task<regular()> t([] { return regular(42); });\n-        BOOST_CHECK_EQUAL(t()._x, 42);\n+        REQUIRE(t()._x == 42);\n     }\n \n     {\n         task<regular()> x([] { return regular(42); });\n         task<regular()> y = std::move(x);\n-        BOOST_CHECK_EQUAL(y()._x, 42);\n+        REQUIRE(y()._x == 42);\n     }\n \n     {\n         task<regular()> x([] { return regular(42); });\n         task<regular()> y([] { return regular(99); });\n         swap(x, y);\n-        BOOST_CHECK_EQUAL(x()._x, 99);\n-        BOOST_CHECK_EQUAL(y()._x, 42);\n+        REQUIRE(x()._x == 99);\n+        REQUIRE(y()._x == 42);\n     }\n \n     {\n         task<move_only()> t([] { return move_only(42); });\n-        BOOST_CHECK_EQUAL(t().member(), 42);\n+        REQUIRE(t().member() == 42);\n     }\n \n     {\n         task<move_only()> x([] { return move_only(42); });\n         task<move_only()> y = std::move(x);\n-        BOOST_CHECK_EQUAL(y().member(), 42);\n+        REQUIRE(y().member() == 42);\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(task_copyable_nullary_tests) {\n+TEST_CASE(\"task_copyable_nullary_tests\") {\n     int value(42);\n \n     {\n         task<int()> t([_value = value] { return _value; });\n-        BOOST_CHECK_EQUAL(t(), value);\n+        REQUIRE(t() == value);\n     }\n \n     {\n         task<int()> x([_value = value] { return _value; });\n         task<int()> y = std::move(x);\n-        BOOST_CHECK_EQUAL(y(), value);\n+        REQUIRE(y() == value);\n     }\n \n     {\n         task<regular()> x([_value = value] { return regular(_value); });\n         task<regular()> y([_value = 99] { return regular(_value); });\n         swap(x, y);\n-        BOOST_CHECK_EQUAL(x()._x, 99);\n-        BOOST_CHECK_EQUAL(y()._x, 42);\n+        REQUIRE(x()._x == 99);\n+        REQUIRE(y()._x == 42);\n     }\n \n     {\n         task<move_only()> t([_value = value] { return move_only(_value); });\n-        BOOST_CHECK_EQUAL(t().member(), value);\n+        REQUIRE(t().member() == value);\n     }\n \n     {\n         task<move_only()> x([_value = value] { return move_only(_value); });\n         task<move_only()> y = std::move(x);\n-        BOOST_CHECK_EQUAL(y().member(), value);\n+        REQUIRE(y().member() == value);\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(task_moveable_nullary_tests) {\n+TEST_CASE(\"task_moveable_nullary_tests\") {\n     {\n         move_only value(42);\n         task<int()> t([_value = std::move(value)] { return _value.member(); });\n-        BOOST_CHECK_EQUAL(t(), 42);\n+        REQUIRE(t() == 42);\n     }\n \n     {\n         move_only value(42);\n         task<int()> x([_value = std::move(value)] { return _value.member(); });\n         task<int()> y = std::move(x);\n-        BOOST_CHECK_EQUAL(y(), 42);\n+        REQUIRE(y() == 42);\n     }\n \n     {\n@@ -214,55 +214,55 @@ BOOST_AUTO_TEST_CASE(task_moveable_nullary_tests) {\n         task<move_only()> x([_value = std::move(value0)]() mutable { return std::move(_value); });\n         task<move_only()> y([_value = std::move(value1)]() mutable { return std::move(_value); });\n         swap(x, y);\n-        BOOST_CHECK_EQUAL(x().member(), 99);\n-        BOOST_CHECK_EQUAL(y().member(), 42);\n+        REQUIRE(x().member() == 99);\n+        REQUIRE(y().member() == 42);\n     }\n \n     {\n         move_only value(42);\n         task<move_only()> t([_value = std::move(value)]() mutable { return std::move(_value); });\n-        BOOST_CHECK_EQUAL(t().member(), 42);\n+        REQUIRE(t().member() == 42);\n     }\n \n     {\n         move_only value(42);\n         task<move_only()> x([_value = std::move(value)]() mutable { return std::move(_value); });\n         task<move_only()> y = std::move(x);\n-        BOOST_CHECK_EQUAL(y().member(), 42);\n+        REQUIRE(y().member() == 42);\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(task_n_ary_tests) {\n+TEST_CASE(\"task_n_ary_tests\") {\n     {\n         task<int(int)> t([](int x) { return x; });\n-        BOOST_CHECK_EQUAL(t(42), 42);\n+        REQUIRE(t(42) == 42);\n     }\n \n     {\n         task<int(int, float)> t([](int x, float y) { return x + static_cast<int>(y); });\n-        BOOST_CHECK_EQUAL(t(21, 21.f), 42);\n+        REQUIRE(t(21, 21.f) == 42);\n     }\n \n     {\n         task<int(int, float)> x([](int x, float y) { return x + static_cast<int>(y); });\n         task<int(int, float)> y([](int x, float y) { return x * static_cast<int>(y); });\n         swap(x, y);\n-        BOOST_CHECK_EQUAL(x(10, 10.f), 100);\n-        BOOST_CHECK_EQUAL(y(10, 10.f), 20);\n+        REQUIRE(x(10, 10.f) == 100);\n+        REQUIRE(y(10, 10.f) == 20);\n     }\n \n     {\n         task<int(int, float, std::string)> t([](int x, float y, const std::string& z) {\n             return x + static_cast<int>(y) + static_cast<int>(z.size());\n         });\n-        BOOST_CHECK_EQUAL(t(20, 20.f, \"00\"), 42);\n+        REQUIRE(t(20, 20.f, \"00\") == 42);\n     }\n \n     {\n         task<int(move_only, int)> x([](move_only m, int i) { return m.member() + i; });\n-        BOOST_CHECK_EQUAL(42, x(move_only(40), 2));\n+        REQUIRE(x(move_only(40), 2) == 42);\n     }\n }\n \n@@ -273,72 +273,72 @@ struct large_model {\n     auto operator()() const { return buffer[0]; }\n };\n \n-BOOST_AUTO_TEST_CASE(task_type_tests) {\n+TEST_CASE(\"task_type_tests\") {\n     {\n         // empty model\n         task<void()> t;\n-        BOOST_CHECK(!t);\n-        BOOST_CHECK_THROW(t(), std::bad_function_call);\n+        REQUIRE(!t);\n+        REQUIRE_THROWS_AS(t(), std::bad_function_call);\n         std::cout << t.target_type().name() << '\\n';\n-        BOOST_CHECK(t.target<void>() == nullptr);\n+        REQUIRE(t.target<void>() == nullptr);\n     }\n \n     {\n         // small model\n         auto small_model = [] { return 42; };\n         task<int()> t = small_model;\n-        BOOST_CHECK(t);\n-        BOOST_CHECK_EQUAL(t(), 42);\n+        REQUIRE(t);\n+        REQUIRE(t() == 42);\n         std::cout << t.target_type().name() << '\\n';\n-        BOOST_CHECK(t.target<decltype(small_model)>() != nullptr);\n+        REQUIRE(t.target<decltype(small_model)>() != nullptr);\n \n         // null assignment\n         t = nullptr;\n-        BOOST_CHECK(!t);\n+        REQUIRE(!t);\n     }\n \n     {\n         task<int()> t(nullptr);\n-        BOOST_CHECK(!t);\n+        REQUIRE(!t);\n     }\n \n     {\n         // large model\n         task<int()> t = large_model();\n-        BOOST_CHECK(t);\n-        BOOST_CHECK_EQUAL(t(), 42);\n+        REQUIRE(t);\n+        REQUIRE(t() == 42);\n         std::cout << t.target_type().name() << '\\n';\n-        BOOST_CHECK(t.target<decltype(large_model())>() != nullptr);\n+        REQUIRE(t.target<decltype(large_model())>() != nullptr);\n     }\n }\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(task_equality_tests) {\n+TEST_CASE(\"task_equality_tests\") {\n     {\n         task<void()> a;\n-        BOOST_CHECK(a == std::nullptr_t());\n+        REQUIRE(a == std::nullptr_t());\n     }\n     {\n         task<void()> a;\n-        BOOST_CHECK(std::nullptr_t() == a);\n+        REQUIRE(std::nullptr_t() == a);\n     }\n \n     {\n         task<void()> a([] {});\n-        BOOST_CHECK(a != std::nullptr_t());\n+        REQUIRE(a != std::nullptr_t());\n     }\n     {\n         task<void()> a([] {});\n-        BOOST_CHECK(std::nullptr_t() != a);\n+        REQUIRE(std::nullptr_t() != a);\n     }\n }\n \n /**************************************************************************************************/\n \n // These tests should fail to compile.\n #if 0\n-BOOST_AUTO_TEST_CASE(task_fail) {\n+TEST_CASE(\"task_fail\") {\n     const task<void()> c{[] {}}; // const task\n     task<void()> t{std::move(c)};\n }"},{"sha":"0620caa5c36b4efd508cf1b9f20148ef2450fde9","filename":"test/traits_test.cpp","status":"modified","additions":12,"deletions":15,"changes":27,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftraits_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftraits_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ftraits_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -6,7 +6,7 @@ Copyright 2019 Adobe\n \n /**************************************************************************************************/\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/concurrency/traits.hpp>\n #include <stlab/test/model.hpp>\n@@ -15,25 +15,22 @@ Copyright 2019 Adobe\n \n using namespace stlab;\n \n-namespace stlab\n-{\n+namespace stlab {\n \n-template<template<typename> class test, typename T, typename A>\n+template <template <typename> class test, typename T, typename A>\n struct smart_test<test, std::vector<T, A>> : test<T> {};\n \n-template<template<typename> class test, typename T, typename A>\n+template <template <typename> class test, typename T, typename A>\n struct smart_test<test, std::vector<std::vector<T, A>>> : test<T> {};\n \n-}\n-\n-BOOST_AUTO_TEST_CASE(check_smart_is_copy_constructible_v) {\n-    BOOST_TEST_MESSAGE(\"Check smart_is_copy_constructible_v\");\n+} // namespace stlab\n \n-    BOOST_REQUIRE(smart_is_copy_constructible_v<int> == true);\n-    BOOST_REQUIRE(smart_is_copy_constructible_v<std::vector<int>> == true);\n-    BOOST_REQUIRE(smart_is_copy_constructible_v<std::vector<annotate>> == true);\n+TEST_CASE(\"check_smart_is_copy_constructible_v\") {\n+    REQUIRE(smart_is_copy_constructible_v<int> == true);\n+    REQUIRE(smart_is_copy_constructible_v<std::vector<int>> == true);\n+    REQUIRE(smart_is_copy_constructible_v<std::vector<annotate>> == true);\n \n-    BOOST_REQUIRE(smart_is_copy_constructible_v<move_only> == false);\n-    BOOST_REQUIRE(smart_is_copy_constructible_v<std::vector<move_only>> == false);\n-    BOOST_REQUIRE(smart_is_copy_constructible_v<std::vector<std::vector<move_only>>> == false);\n+    REQUIRE(smart_is_copy_constructible_v<move_only> == false);\n+    REQUIRE(smart_is_copy_constructible_v<std::vector<move_only>> == false);\n+    REQUIRE(smart_is_copy_constructible_v<std::vector<std::vector<move_only>>> == false);\n }"},{"sha":"cd05fd4004e5a8617a13c3ab22b0163869e7e5cc","filename":"test/tuple_algorithm_test.cpp","status":"modified","additions":22,"deletions":35,"changes":57,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftuple_algorithm_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftuple_algorithm_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ftuple_algorithm_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -8,7 +8,7 @@\n \n #include <stlab/concurrency/tuple_algorithm.hpp>\n \n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <cstddef>\n #include <list>\n@@ -17,56 +17,45 @@\n \n using namespace stlab;\n \n-BOOST_AUTO_TEST_SUITE(tuple_find_test)\n-\n-BOOST_AUTO_TEST_CASE(empty_tuple) {\n+TEST_CASE(\"tuple_find_empty_tuple\") {\n     std::tuple<> t;\n-    BOOST_REQUIRE_EQUAL(std::size_t(1), stlab::tuple_find(t, [](const auto&) { return false; }));\n+    REQUIRE(stlab::tuple_find(t, [](const auto&) { return false; }) == std::size_t(1));\n }\n \n-BOOST_AUTO_TEST_CASE(one_element_tuple_that_fails) {\n+TEST_CASE(\"tuple_find_one_element_tuple_that_fails\") {\n     std::tuple<std::vector<int>> t;\n-    BOOST_REQUIRE_EQUAL(std::size_t(1),\n-                        stlab::tuple_find(t, [](const auto& t) { return !t.empty(); }));\n+    REQUIRE(stlab::tuple_find(t, [](const auto& t) { return !t.empty(); }) == std::size_t(1));\n }\n \n-BOOST_AUTO_TEST_CASE(one_element_tuple_that_succeeds) {\n+TEST_CASE(\"tuple_find_one_element_tuple_that_succeeds\") {\n     std::tuple<std::vector<int>> t;\n-    BOOST_REQUIRE_EQUAL(std::size_t(0),\n-                        stlab::tuple_find(t, [](const auto& t) { return t.empty(); }));\n+    REQUIRE(stlab::tuple_find(t, [](const auto& t) { return t.empty(); }) == std::size_t(0));\n }\n \n-BOOST_AUTO_TEST_CASE(two_element_tuple_that_fails) {\n+TEST_CASE(\"tuple_find_two_element_tuple_that_fails\") {\n     std::tuple<std::vector<int>, std::list<double>> t;\n-    BOOST_REQUIRE_EQUAL(std::size_t(2),\n-                        stlab::tuple_find(t, [](const auto& t) { return !t.empty(); }));\n+    REQUIRE(stlab::tuple_find(t, [](const auto& t) { return !t.empty(); }) == std::size_t(2));\n }\n \n-BOOST_AUTO_TEST_CASE(two_element_tuple_first_succeeds) {\n+TEST_CASE(\"tuple_find_two_element_tuple_first_succeeds\") {\n     std::tuple<std::vector<int>, std::list<double>> t;\n-    BOOST_REQUIRE_EQUAL(std::size_t(0),\n-                        stlab::tuple_find(t, [](const auto& t) { return t.empty(); }));\n+    REQUIRE(stlab::tuple_find(t, [](const auto& t) { return t.empty(); }) == std::size_t(0));\n }\n \n-BOOST_AUTO_TEST_CASE(two_element_tuple_second_succeeds) {\n+TEST_CASE(\"tuple_find_two_element_tuple_second_succeeds\") {\n     std::tuple<std::vector<int>, std::list<double>> t;\n     std::get<0>(t).push_back(0);\n-    BOOST_REQUIRE_EQUAL(std::size_t(1),\n-                        stlab::tuple_find(t, [](const auto& t) { return t.empty(); }));\n+    REQUIRE(stlab::tuple_find(t, [](const auto& t) { return t.empty(); }) == std::size_t(1));\n }\n \n-BOOST_AUTO_TEST_SUITE_END()\n-\n-BOOST_AUTO_TEST_SUITE(tuple_for_each_test)\n-\n-BOOST_AUTO_TEST_CASE(empty_tuple) {\n+TEST_CASE(\"tuple_for_each_empty_tuple\") {\n     std::tuple<> t;\n     std::size_t count = 0;\n     stlab::tuple_for_each(t, [&count](auto&) { ++count; });\n-    BOOST_REQUIRE_EQUAL(std::size_t(0), count);\n+    REQUIRE(count == std::size_t(0));\n }\n \n-BOOST_AUTO_TEST_CASE(one_element_tuple) {\n+TEST_CASE(\"tuple_for_each_one_element_tuple\") {\n     std::tuple<std::vector<int>> t;\n     std::get<0>(t) = {\n         1, 2}; // workaround for gcc 5 missing capability to support initializer lists for tuples\n@@ -75,11 +64,11 @@ BOOST_AUTO_TEST_CASE(one_element_tuple) {\n         ++count;\n         c.pop_back();\n     });\n-    BOOST_REQUIRE_EQUAL(std::size_t(1), std::get<0>(t).size());\n-    BOOST_REQUIRE_EQUAL(std::size_t(1), count);\n+    REQUIRE(std::get<0>(t).size() == std::size_t(1));\n+    REQUIRE(count == std::size_t(1));\n }\n \n-BOOST_AUTO_TEST_CASE(two_element_tuple) {\n+TEST_CASE(\"tuple_for_each_two_element_tuple\") {\n     std::tuple<std::vector<int>, std::list<double>> t;\n     std::get<0>(t) = {\n         1, 2}; // workaround for gcc 5 missing capability to support initializer lists for tuples\n@@ -90,9 +79,7 @@ BOOST_AUTO_TEST_CASE(two_element_tuple) {\n         ++count;\n         c.pop_back();\n     });\n-    BOOST_REQUIRE_EQUAL(std::size_t(1), std::get<0>(t).size());\n-    BOOST_REQUIRE_EQUAL(std::size_t(1), std::get<1>(t).size());\n-    BOOST_REQUIRE_EQUAL(std::size_t(2), count);\n+    REQUIRE(std::get<0>(t).size() == std::size_t(1));\n+    REQUIRE(std::get<1>(t).size() == std::size_t(1));\n+    REQUIRE(count == std::size_t(2));\n }\n-\n-BOOST_AUTO_TEST_SUITE_END()"},{"sha":"b5bf3f4dd112ff582630f07a9fb8791491d0878f","filename":"test/tuple_test.cpp","status":"modified","additions":19,"deletions":15,"changes":34,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftuple_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Ftuple_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ftuple_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -10,11 +10,10 @@\n #include <cstddef>\n #include <cstdlib>\n #include <iostream>\n-#include <memory>\n #include <string>\n \n // boost\n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n #include <tuple>\n #include <utility>\n \n@@ -30,7 +29,9 @@\n #include <stlab/concurrency/tuple_algorithm.hpp>\n #include <stlab/utility.hpp>\n \n-#if defined(__clang__)\n+\n+// cxxabi.h (demangling) is only available with libstdc++ (e.g. Linux/macOS Clang), not on Windows.\n+#if defined(__clang__) && defined(__GLIBCXX__)\n #include <cxxabi.h>\n #endif\n \n@@ -42,15 +43,15 @@ namespace {\n \n template <typename T>\n auto demangle() -> std::string {\n-#if defined(__clang__)\n+#if defined(__clang__) && defined(__GLIBCXX__)\n     struct freer_t {\n         void operator()(void* x) const { std::free(x); }\n     };\n     std::unique_ptr<char, freer_t> c_str(\n         abi::__cxa_demangle(typeid(T).name(), nullptr, nullptr, nullptr));\n     return c_str.get();\n #else\n-    return std::string();\n+    return {};\n #endif\n }\n \n@@ -65,7 +66,7 @@ using namespace stlab;\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(remove_placeholder_test) {\n+TEST_CASE(\"remove_placeholder_test\") {\n     auto x = std::make_tuple(10, placeholder(), 25.0, placeholder());\n \n     apply_indexed<index_sequence_transform_t<make_index_sequence<tuple_size_v<decltype(x)>>,\n@@ -75,7 +76,7 @@ BOOST_AUTO_TEST_CASE(remove_placeholder_test) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(add_placeholder_test) {\n+TEST_CASE(\"add_placeholder_test\") {\n     using interim_t = placeholder_tuple<int, void, int, void>;\n \n     auto x = interim_t(10, placeholder(), 25, placeholder());\n@@ -88,7 +89,10 @@ BOOST_AUTO_TEST_CASE(add_placeholder_test) {\n /**************************************************************************************************/\n \n template <typename F, typename... Ts>\n-void when_all_typecheck(F, const future<Ts>&...) {\n+void when_all_typecheck(\n+    F f, const future<Ts>&... futures) { // NOLINT(cert-dcl50-cpp) parameter pack, not C variadic\n+    (void)f;\n+    (..., (void)futures);\n     using pt_t = placeholder_tuple<Ts...>;\n     using opt_t = optional_placeholder_tuple<Ts...>;\n     using vt_t = voidless_tuple<Ts...>;\n@@ -102,7 +106,7 @@ void when_all_typecheck(F, const future<Ts>&...) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(future_typecheck_test) {\n+TEST_CASE(\"future_typecheck_test\") {\n     auto fv = [] { return stlab::make_ready_future(stlab::default_executor); };\n     auto fi = [] {\n         static int count_s{0};\n@@ -116,7 +120,7 @@ BOOST_AUTO_TEST_CASE(future_typecheck_test) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(future_when_all_int_int) {\n+TEST_CASE(\"future_when_all_int_int\") {\n     auto fi = [] {\n         static int count_s{0};\n         return stlab::make_ready_future<int>(count_s++, stlab::default_executor);\n@@ -132,7 +136,7 @@ BOOST_AUTO_TEST_CASE(future_when_all_int_int) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void) {\n+TEST_CASE(\"future_when_all_void\") {\n     auto fv = [] { return stlab::make_ready_future(stlab::default_executor); };\n \n     auto f = when_all(stlab::default_executor, []() { cout << \"done!\\n\"; }, fv());\n@@ -142,7 +146,7 @@ BOOST_AUTO_TEST_CASE(future_when_all_void) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(future_when_all_void_int) {\n+TEST_CASE(\"future_when_all_void_int\") {\n     auto fv = [] { return stlab::make_ready_future(stlab::default_executor); };\n     auto fi = [] {\n         static int count_s{0};\n@@ -159,7 +163,7 @@ BOOST_AUTO_TEST_CASE(future_when_all_void_int) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(future_when_all_int_void) {\n+TEST_CASE(\"future_when_all_int_void\") {\n     auto fv = [] { return stlab::make_ready_future(stlab::default_executor); };\n     auto fi = [] {\n         static int count_s{0};\n@@ -176,7 +180,7 @@ BOOST_AUTO_TEST_CASE(future_when_all_int_void) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(future_when_all_int_void_string_void_bool_void) {\n+TEST_CASE(\"future_when_all_int_void_string_void_bool_void\") {\n     auto fv = [] { return stlab::make_ready_future(stlab::default_executor); };\n     auto fi = [] { return stlab::make_ready_future<int>(42, stlab::default_executor); };\n     auto fs = [] {\n@@ -196,7 +200,7 @@ BOOST_AUTO_TEST_CASE(future_when_all_int_void_string_void_bool_void) {\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(future_when_any_void) {\n+TEST_CASE(\"future_when_any_void\") {\n     auto fv = [] { return stlab::make_ready_future(stlab::default_executor); };\n \n     auto f = when_any("},{"sha":"533d693424812f8d691da893482195d406049ba9","filename":"test/utility_test.cpp","status":"modified","additions":8,"deletions":8,"changes":16,"blob_url":"https://github.com/stlab/stlab/blob/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Futility_test.cpp","raw_url":"https://github.com/stlab/stlab/raw/e126676725fec8fe539258f1888d4e3b064dd7eb/test%2Futility_test.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Futility_test.cpp?ref=e126676725fec8fe539258f1888d4e3b064dd7eb","patch":"@@ -12,7 +12,7 @@\n #include <utility>\n \n // boost\n-#include <boost/test/unit_test.hpp>\n+#include <doctest/doctest.h>\n \n #include <stlab/test/model.hpp>\n \n@@ -43,17 +43,17 @@ using namespace stlab;\n \n /**************************************************************************************************/\n \n-BOOST_AUTO_TEST_CASE(copy_test) {\n+TEST_CASE(\"copy_test\") {\n     annotate_counters counters;\n     annotate a{counters};\n     a = sink_only(std::move(a));\n-    BOOST_CHECK(counters._copy_ctor == 0);\n-    BOOST_CHECK(counters._copy_assign_lhs == 0);\n-    BOOST_CHECK(counters._copy_assign_rhs == 0);\n+    REQUIRE(counters._copy_ctor == 0);\n+    REQUIRE(counters._copy_assign_lhs == 0);\n+    REQUIRE(counters._copy_assign_rhs == 0);\n     a = sink_only(stlab::copy(a));\n-    BOOST_CHECK(counters._copy_ctor == 1);\n-    BOOST_CHECK(counters._copy_assign_lhs == 0);\n-    BOOST_CHECK(counters._copy_assign_rhs == 0);\n+    REQUIRE(counters._copy_ctor == 1);\n+    REQUIRE(counters._copy_assign_lhs == 0);\n+    REQUIRE(counters._copy_assign_rhs == 0);\n }\n \n /**************************************************************************************************/"}]}