[mlpack-git] master, mlpack-1.0.x: The test for FurthestPointDistance() was wrong also. (e30506e)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:47:14 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit e30506ec62ede9c8f31ca2ef9c7ecd30efb99ba0
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue May 20 18:34:49 2014 +0000
The test for FurthestPointDistance() was wrong also.
>---------------------------------------------------------------
e30506ec62ede9c8f31ca2ef9c7ecd30efb99ba0
src/mlpack/tests/tree_test.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/tests/tree_test.cpp b/src/mlpack/tests/tree_test.cpp
index 52f2c17..98ded62 100644
--- a/src/mlpack/tests/tree_test.cpp
+++ b/src/mlpack/tests/tree_test.cpp
@@ -1077,7 +1077,7 @@ BOOST_AUTO_TEST_CASE(FurthestPointDistanceTest)
BinarySpaceTree<HRectBound<2> >* node = nodeQueue.front();
nodeQueue.pop();
- if (node->NumChildren() == 0)
+ if (node->NumChildren() != 0)
BOOST_REQUIRE_EQUAL(node->FurthestPointDistance(), 0.0);
else
{
More information about the mlpack-git
mailing list