@@ -19,7 +19,7 @@ TEST_CASE("flatten std::expected", "[utility]") {
1919 }
2020
2121 SECTION (" has error" ) {
22- REQUIRE_ERROR (zero::flatten (std::expected<std::expected<void , short >, int >{std::unexpected{- 1 } }), -1 );
22+ REQUIRE_ERROR (zero::flatten (std::expected<std::expected<void , short >, int >{std::unexpect, - 1 }), -1 );
2323 }
2424 }
2525
@@ -29,7 +29,7 @@ TEST_CASE("flatten std::expected", "[utility]") {
2929 }
3030
3131 SECTION (" has error" ) {
32- REQUIRE_ERROR (zero::flatten (std::expected<std::expected<int , short >, int >{std::unexpected{- 1 } }), -1 );
32+ REQUIRE_ERROR (zero::flatten (std::expected<std::expected<int , short >, int >{std::unexpect, - 1 }), -1 );
3333 }
3434 }
3535}
@@ -42,7 +42,7 @@ TEST_CASE("flatten std::expected with error type", "[utility]") {
4242
4343 SECTION (" has error" ) {
4444 REQUIRE_ERROR (
45- zero::flattenWith<long >(std::expected<std::expected<void , short >, int >{std::unexpected{- 1 } }),
45+ zero::flattenWith<long >(std::expected<std::expected<void , short >, int >{std::unexpect, - 1 }),
4646 -1
4747 );
4848 }
@@ -55,9 +55,7 @@ TEST_CASE("flatten std::expected with error type", "[utility]") {
5555
5656 SECTION (" has error" ) {
5757 REQUIRE_ERROR (
58- zero::flattenWith<long >(std::expected<std::expected<int , short >, int >{
59- std::unexpected{-1 }
60- }),
58+ zero::flattenWith<long >(std::expected<std::expected<int , short >, int >{std::unexpect, -1 }),
6159 -1
6260 );
6361 }
@@ -70,7 +68,7 @@ TEST_CASE("extract std::expected", "[utility]") {
7068 }
7169
7270 SECTION (" has error" ) {
73- REQUIRE_FALSE (zero::extract (std::expected<int , int >{std::unexpected{- 1 } }));
71+ REQUIRE_FALSE (zero::extract (std::expected<int , int >{std::unexpect, - 1 }));
7472 }
7573}
7674
@@ -86,7 +84,7 @@ TEST_CASE("transpose std::expected", "[utility]") {
8684 }
8785
8886 SECTION (" has error" ) {
89- REQUIRE (zero::transpose (std::expected<std::optional<int >, int >{std::unexpected{ -1 }} ) == std::unexpected{-1 });
87+ REQUIRE (zero::transpose (std::expected<std::optional<int >, int >{std::unexpect, -1 }) == std::unexpected{-1 } );
9088 }
9189}
9290
0 commit comments