[mlpack-git] master: Fix closing parenthesis. (095844b)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Fri Jan 1 06:50:53 EST 2016


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/7f4c62b81874f816229cd34330635d1ab776acda...095844bd92e14d4a17c134b0b088dcf488d092fc

>---------------------------------------------------------------

commit 095844bd92e14d4a17c134b0b088dcf488d092fc
Author: marcus <marcus.edel at fu-berlin.de>
Date:   Fri Jan 1 12:50:45 2016 +0100

    Fix closing parenthesis.


>---------------------------------------------------------------

095844bd92e14d4a17c134b0b088dcf488d092fc
 src/mlpack/tests/allknn_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/tests/allknn_test.cpp b/src/mlpack/tests/allknn_test.cpp
index f678e4e..54ff6e8 100644
--- a/src/mlpack/tests/allknn_test.cpp
+++ b/src/mlpack/tests/allknn_test.cpp
@@ -306,7 +306,7 @@ BOOST_AUTO_TEST_CASE(MoveConstructorTest)
   for (size_t i = 0; i < moveDistances.n_elem; ++i)
   {
     BOOST_REQUIRE_EQUAL(moveNeighbors[i], neighbors[i]);
-    if (std::abs(distances[i] < 1e-5))
+    if (std::abs(distances[i]) < 1e-5)
       BOOST_REQUIRE_SMALL(moveDistances[i], 1e-5);
     else
       BOOST_REQUIRE_CLOSE(moveDistances[i], distances[i], 1e-5);



More information about the mlpack-git mailing list