Skip to content

Commit ac8352c

Browse files
committed
add Catch2 sections to existing composition test
1 parent 56bb23b commit ac8352c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/exec/test_repeat_until.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ namespace {
264264
}
265265

266266
TEST_CASE("repeat composes with completion signatures", "[adaptors][repeat]") {
267-
{
267+
SECTION("repeat composes with stopped upstream") {
268268
ex::sender auto only_stopped = ex::just_stopped() | exec::repeat();
269269
static_assert(
270270
std::same_as<ex::value_types_of_t<decltype(only_stopped)>, ex::__detail::__not_a_variant>,
@@ -280,7 +280,7 @@ namespace {
280280
ex::sync_wait(only_stopped | ex::upon_stopped([]() noexcept { return -1; }));
281281
}
282282

283-
{
283+
SECTION("repeat composes with errors upstream") {
284284
ex::sender auto only_error = ex::just_error(-1) | exec::repeat();
285285
static_assert(
286286
std::same_as<ex::value_types_of_t<decltype(only_error)>, ex::__detail::__not_a_variant>,

0 commit comments

Comments
 (0)