Skip to content

Commit

Permalink
fix: use workaround to make test compilable on all configs
Browse files Browse the repository at this point in the history
  • Loading branch information
DNKpp committed Sep 25, 2024
1 parent 1d2abe6 commit 54581db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/unit-tests/InterfaceMock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ TEST_CASE(
mock,
( void() ));

REQUIRE(std::invocable<decltype(mock)>);
STATIC_REQUIRE(std::is_invocable_r_v<void, decltype(mock)>);
}

SECTION("Just float&(int&&)")
Expand All @@ -101,8 +101,7 @@ TEST_CASE(
mock,
( float&(int&&) ));

REQUIRE(std::invocable<decltype(mock), int&&>);
REQUIRE(std::same_as<float&, std::invoke_result_t<decltype(mock), int&&>>);
STATIC_REQUIRE(std::is_invocable_r_v<float&, decltype(mock), int&&>);
}
}

Expand Down

0 comments on commit 54581db

Please sign in to comment.