Skip to content

Commit

Permalink
#2140: Tests: Use new vt::invoke in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Jun 6, 2023
1 parent b909210 commit 522f169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/runnable/test_invoke.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ std::unique_ptr<A> nonCopyableFun() {
}

TEST_F(TestInvoke, test_invoke_call) {
vt::runnable::invoke<decltype(&voidWithArg), &voidWithArg>(10);
vt::runnable::invoke<&voidWithArg>(10);
EXPECT_EQ(test_value, 10);

auto b = vt::runnable::invoke<decltype(&nonCopyableFun), &nonCopyableFun>();
auto b = vt::runnable::invoke<&nonCopyableFun>();
EXPECT_EQ(test_value, 20);

auto accumulate_result =
vt::runnable::invoke<decltype(&A::memberFunc), &A::memberFunc>(
vt::runnable::invoke<&A::memberFunc>(
b.get(), std::vector<int32_t>{10, 20, 30}
);
EXPECT_EQ(accumulate_result, 60);
Expand Down

0 comments on commit 522f169

Please sign in to comment.