[mlpack] 06/324: The test for FurthestPointDistance() was wrong also.

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sun Aug 17 08:21:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit f20c1bf87f7d88dabf9b924c91b49b9172b8b0c3
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue May 20 18:34:49 2014 +0000

    The test for FurthestPointDistance() was wrong also.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16524 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 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
     {

-- 
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