[mlpack] 05/40: Fix closing parenthesis.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Mon Feb 15 19:34:22 UTC 2016
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 3fcd8c096741c4eb88e725373904e5e5c483536d
Author: marcus <marcus.edel at fu-berlin.de>
Date: Fri Jan 1 12:50:45 2016 +0100
Fix closing parenthesis.
---
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 b57d30e..f445a70 100644
--- a/src/mlpack/tests/allknn_test.cpp
+++ b/src/mlpack/tests/allknn_test.cpp
@@ -313,7 +313,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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list