Skip to content

Commit 5d30c0b

Browse files
Fixed error in test
1 parent ed74536 commit 5d30c0b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/generic/test_optional.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ struct Person {
1313
TEST(generic, test_optional) {
1414
rfl::Generic generic;
1515
// This failed to compile due to optional copying rather than moving
16-
rfl::from_generic<Person>(generic).value();
16+
const auto res = rfl::from_generic<Person>(generic);
17+
EXPECT_FALSE(res && true);
1718
}
1819
} // namespace test_optional

0 commit comments

Comments
 (0)