mirror of
https://github.com/TartanLlama/expected.git
synced 2025-08-02 10:24:31 +02:00
Add tests for tl::unexpected guide
This commit is contained in:
@@ -160,3 +160,10 @@ TEST_CASE("Issue 122", "[issues.122]") {
|
|||||||
res.emplace(); // why moved?
|
res.emplace(); // why moved?
|
||||||
REQUIRE(res.value().moved == 0);
|
REQUIRE(res.value().moved == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cpp_deduction_guides
|
||||||
|
TEST_CASE("Issue 89", "[issues.89]") {
|
||||||
|
auto s = tl::unexpected("Some string");
|
||||||
|
REQUIRE(s.value() == "Some string");
|
||||||
|
}
|
||||||
|
#endif
|
Reference in New Issue
Block a user