Add tests for tl::unexpected guide
This commit is contained in:
1 parent
fb0bd6e79d
commit
4621a489bf
1 file changed
+8
-1
+8
-1
@@ -159,4 +159,11 @@ TEST_CASE("Issue 122", "[issues.122]") {
|
||||
tl::expected<move_tracker, int> res;
|
||||
res.emplace(); // why moved?
|
||||
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