mirror of
https://github.com/trafi/maybe-result-cpp
synced 2024-11-26 04:26:06 +01:00
Merge pull request #3 from trafi/feature/fix-into-err-return-type
Fix into_err return type in tests.
This commit is contained in:
commit
8e0562f255
@ -28,7 +28,7 @@ TEST_CASE("result_into_err")
|
|||||||
SECTION("converts result<A, E>::err to result<void, E>::err")
|
SECTION("converts result<A, E>::err to result<void, E>::err")
|
||||||
{
|
{
|
||||||
auto a = result<A, int>::err(42);
|
auto a = result<A, int>::err(42);
|
||||||
auto b = a.into_err<result<void, int>>();
|
auto b = a.into_err<void>();
|
||||||
REQUIRE(!b);
|
REQUIRE(!b);
|
||||||
REQUIRE(42 == b.err_value());
|
REQUIRE(42 == b.err_value());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user