Skip to content

Commit 6ce7633

Browse files
committed
Use value for std::optional for tests [skip ci]
1 parent c53e285 commit 6ce7633

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/helper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ void assert_exception(std::function<void(void)> code, std::optional<std::string_
2626
}
2727
assert_equal(exception.has_value(), true);
2828
if (message) {
29-
assert_equal(std::string_view{(*exception).what()}, *message);
29+
assert_equal(std::string_view{exception.value().what()}, message.value());
3030
}
3131
}

0 commit comments

Comments
 (0)