Skip to content

Commit

Permalink
fix unit test error (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevermore1994 authored Jan 7, 2024
1 parent b0f1c65 commit a48d790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ struct SenderAdaptorClosure {
}

template <std::ranges::viewable_range InputView>
friend auto operator|(InputView &&lhs, SenderAdaptorClosure<S> self) {
friend auto operator|(InputView&& lhs, SenderAdaptorClosure<S> self) {
auto res = self.sender_->send(std::forward<InputView>(lhs));
return std::ranges::single_view<bool>(res);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ TEST(ChannelTest, ImplicitConversion) {
sp << value;
for (int i = 1; i < 10; i++) {
auto tmepValue = new TestValue();
value->value = i;
value->key = std::to_string(i);
tmepValue->value = i;
tmepValue->key = std::to_string(i);
values.emplace_back(tmepValue);
}
sp << std::move(values);
Expand Down

0 comments on commit a48d790

Please sign in to comment.