File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
src/ystdlib/error_handling/test Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,11 @@ TEST_CASE("test_error_code", "[error_handling][ErrorCode]") {
5050
5151TEST_CASE (" test_error_code_failure_condition" , " [error_handling][ErrorCode]" ) {
5252 std::error_code const failure_error_code{BinaryErrorCode{BinaryErrorCodeEnum::Failure}};
53- std::ranges::for_each (
54- cFailureConditions.cbegin (),
55- cFailureConditions.cend (),
56- [&](auto failure_condition) { REQUIRE ((failure_error_code == failure_condition)); }
57- );
58- std::ranges::for_each (
59- cNoneFailureConditions.cbegin (),
60- cNoneFailureConditions.cend (),
61- [&](auto none_failure_condition) {
62- REQUIRE ((failure_error_code != none_failure_condition));
63- }
64- );
53+ std::ranges::for_each (cFailureConditions, [&](auto const & failure_condition) {
54+ REQUIRE ((failure_error_code == failure_condition));
55+ });
56+ std::ranges::for_each (cNoneFailureConditions, [&](auto const & none_failure_condition) {
57+ REQUIRE ((failure_error_code != none_failure_condition));
58+ });
6559}
6660} // namespace ystdlib::error_handling::test
You can’t perform that action at this time.
0 commit comments