diff --git a/src/tests/test_utils/common_test_utils/src/ov_tensor_utils.cpp b/src/tests/test_utils/common_test_utils/src/ov_tensor_utils.cpp index e476ed692a8bd8..3f9ee4d839c616 100644 --- a/src/tests/test_utils/common_test_utils/src/ov_tensor_utils.cpp +++ b/src/tests/test_utils/common_test_utils/src/ov_tensor_utils.cpp @@ -390,11 +390,11 @@ void compare(const ov::Tensor& expected, double expected_value = expected_data[i]; double actual_value = actual_data[i]; - if ((std::isinf(expected_value) || expected_value >= max_type_expected) &&\ + if ((std::isinf(expected_value) || expected_value >= max_type_expected) && (std::isinf(actual_value) || actual_value >= max_type_actual)) { continue; - } else if ((std::isinf(expected_value) || expected_value <= min_type_expected) &&\ - (std::isinf(actual_value) || actual_value <= min_type_actual)) { + } else if ((std::isinf(expected_value) || expected_value <= min_type_expected) && + (std::isinf(actual_value) || actual_value <= min_type_actual)) { continue; }