diff --git a/src/mlpack/tests/tree_test.cpp b/src/mlpack/tests/tree_test.cpp index 52f2c17b91..98ded624d9 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 >* node = nodeQueue.front(); nodeQueue.pop(); - if (node->NumChildren() == 0) + if (node->NumChildren() != 0) BOOST_REQUIRE_EQUAL(node->FurthestPointDistance(), 0.0); else {