Skip to content

Commit b4aa46b

Browse files
committed
Remove unnecessary parenthesis
1 parent c1e11dd commit b4aa46b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/ystdlib/error_handling/test/test_Result.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ TEST_CASE("test_result_void_in_main", "[error_handling][Result]") {
5959

6060
auto const main_has_error{main_func(true)};
6161
REQUIRE(main_has_error.has_error());
62-
REQUIRE((BinaryErrorCode{BinaryErrorCodeEnum::Failure} == main_has_error.error()));
62+
REQUIRE(BinaryErrorCode{BinaryErrorCodeEnum::Failure} == main_has_error.error());
6363
}
6464

6565
TEST_CASE("test_result_int", "[error_handling][Result]") {
6666
auto const result_no_error{cIntFunc(false)};
6767
REQUIRE_FALSE(result_no_error.has_error());
68-
REQUIRE((cTestInt == result_no_error.value()));
68+
REQUIRE(cTestInt == result_no_error.value());
6969

7070
auto const result_has_error{cIntFunc(true)};
7171
REQUIRE(result_has_error.has_error());
@@ -83,7 +83,7 @@ TEST_CASE("test_result_int_in_main", "[error_handling][Result]") {
8383

8484
auto const main_has_error{main_func(true)};
8585
REQUIRE(main_has_error.has_error());
86-
REQUIRE((std::errc::bad_message == main_has_error.error()));
86+
REQUIRE(std::errc::bad_message == main_has_error.error());
8787
}
8888

8989
TEST_CASE("test_result_int_propagate", "[error_handling][Result]") {
@@ -92,17 +92,17 @@ TEST_CASE("test_result_int_propagate", "[error_handling][Result]") {
9292
};
9393
auto const main_no_error{main_func(false)};
9494
REQUIRE_FALSE(main_no_error.has_error());
95-
REQUIRE((cTestInt == main_no_error.value()));
95+
REQUIRE(cTestInt == main_no_error.value());
9696

9797
auto const main_has_error{main_func(true)};
9898
REQUIRE(main_has_error.has_error());
99-
REQUIRE((std::errc::bad_message == main_has_error.error()));
99+
REQUIRE(std::errc::bad_message == main_has_error.error());
100100
}
101101

102102
TEST_CASE("test_result_unique_ptr", "[error_handling][Result]") {
103103
auto const result_no_error{cUniquePtrFunc(false)};
104104
REQUIRE_FALSE(result_no_error.has_error());
105-
REQUIRE((cTestInt == *(result_no_error.value())));
105+
REQUIRE(cTestInt == *(result_no_error.value()));
106106

107107
auto const result_has_error{cUniquePtrFunc(true)};
108108
REQUIRE(result_has_error.has_error());
@@ -130,7 +130,7 @@ TEST_CASE("test_result_unique_ptr_propagate", "[error_handling][Result]") {
130130
};
131131
auto const main_no_error{main_func(false)};
132132
REQUIRE_FALSE(main_no_error.has_error());
133-
REQUIRE((cTestInt == *(main_no_error.value())));
133+
REQUIRE(cTestInt == *(main_no_error.value()));
134134

135135
auto const main_has_error{main_func(true)};
136136
REQUIRE(main_has_error.has_error());

0 commit comments

Comments
 (0)