Skip to content

Commit ddc963e

Browse files
Comments
1 parent 815d4e7 commit ddc963e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/channel_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ TEST(ChannelTest, Transform)
372372
msd::channel<movable_only> input_chan{30};
373373
msd::channel<int> output_chan{10};
374374

375-
// Send to channel input channel
375+
// Send to input channel
376376
const auto writer = [&input_chan]() {
377377
for (int i = 1; i <= numbers; ++i) {
378378
input_chan.write(movable_only{i});
@@ -427,15 +427,15 @@ TEST(ChannelTest, FilterAndAccumulate)
427427
msd::channel<int> input_chan{10};
428428
msd::channel<int> output_chan{10};
429429

430-
// Producer: fill input channel with 1..101
430+
// Producer: send numbers on input channel
431431
const auto producer = [&input_chan]() {
432432
for (int i = 1; i <= 101; ++i) {
433433
input_chan.write(i);
434434
}
435435
input_chan.close();
436436
};
437437

438-
// Filter: take even numbers
438+
// Filter: take even numbers from input channel and write them to output channel
439439
const auto filter = [&input_chan, &output_chan]() {
440440
std::copy_if(input_chan.begin(), input_chan.end(), msd::back_inserter(output_chan),
441441
[](int value) { return value % 2 == 0; });

0 commit comments

Comments
 (0)