File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 33
44#include < beman/execution/detail/let.hpp>
55#include < beman/execution/detail/just.hpp>
6+ #include < beman/execution/detail/get_scheduler.hpp>
67#include < beman/execution/detail/then.hpp>
8+ #include < beman/execution/detail/read_env.hpp>
79#include < beman/execution/detail/sync_wait.hpp>
810#include < test/execution.hpp>
911#include < array>
@@ -105,6 +107,11 @@ auto test_let_value_allocator() -> void {
105107 // static_assert(std::same_as<void, decltype(test_std::get_completion_signatures(s, test_std::empty_env{}))>);
106108 ex::sync_wait (s);
107109}
110+
111+ auto test_let_value_env () -> void {
112+ ex::sync_wait (ex::just () | ex::let_value ([] { return ex::read_env (ex::get_scheduler); }) |
113+ ex::then ([](auto s) { static_assert (ex::scheduler<decltype (s)>); }));
114+ }
108115} // namespace
109116
110117// ----------------------------------------------------------------------------
@@ -117,6 +124,7 @@ TEST(exec_let) {
117124 try {
118125 test_let_value ();
119126 test_let_value_allocator ();
127+ test_let_value_env ();
120128 } catch (...) {
121129 // NOLINTBEGIN(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
122130 ASSERT (nullptr == " let tests are not expected to throw" );
You can’t perform that action at this time.
0 commit comments