diff --git a/src/mlpack/tests/init_rules_test.cpp b/src/mlpack/tests/init_rules_test.cpp index 8f6c731bbd..e161fcbed3 100644 --- a/src/mlpack/tests/init_rules_test.cpp +++ b/src/mlpack/tests/init_rules_test.cpp @@ -61,8 +61,8 @@ TEST_CASE("OrthogonalInitTest", "[InitRulesTest]") for (size_t i = 0; i < weights.n_rows; ++i) for (size_t j = 0; j < weights.n_cols; ++j) { - REQUIRE(weights.at(i, j) - orthogonalWeights.at(i, j)) == - Approx(0.0).margin(1e-3); + REQUIRE((weights.at(i, j) - orthogonalWeights.at(i, j)) == + Approx(0.0).margin(1e-3)); } orthogonalInit.Initialize(weights, 200, 100); @@ -71,8 +71,8 @@ TEST_CASE("OrthogonalInitTest", "[InitRulesTest]") for (size_t i = 0; i < weights.n_rows; ++i) for (size_t j = 0; j < weights.n_cols; ++j) { - REQUIRE(weights.at(i, j) - orthogonalWeights.at(i, j)) == - Approx(0.0).margin(1e-3); + REQUIRE((weights.at(i, j) - orthogonalWeights.at(i, j)) == + Approx(0.0).margin(1e-3)); } } @@ -94,8 +94,8 @@ TEST_CASE("OrthogonalInitGainTest", "[InitRulesTest]") for (size_t i = 0; i < weights.n_rows; ++i) for (size_t j = 0; j < weights.n_cols; ++j) { - REQUIRE(weights.at(i, j) - orthogonalWeights.at(i, j)) == - Approx(0.0).margin(1e-3); + REQUIRE((weights.at(i, j) - orthogonalWeights.at(i, j)) == + Approx(0.0).margin(1e-3)); } }