[mlpack-svn] r13239 - mlpack/trunk/src/mlpack/tests

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Jul 16 12:07:04 EDT 2012


Author: rcurtin
Date: 2012-07-16 12:07:04 -0400 (Mon, 16 Jul 2012)
New Revision: 13239

Modified:
   mlpack/trunk/src/mlpack/tests/det_test.cpp
Log:
Use BOOST_REQUIRE_EQUAL(), and the function is now called WithinRange().


Modified: mlpack/trunk/src/mlpack/tests/det_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/det_test.cpp	2012-07-16 16:06:47 UTC (rev 13238)
+++ mlpack/trunk/src/mlpack/tests/det_test.cpp	2012-07-16 16:07:04 UTC (rev 13239)
@@ -78,11 +78,11 @@
   VecType test_query(3);
   test_query << 4.5 << 2.5 << 2;
 
-  BOOST_REQUIRE(testDTree.WithinRange_(&test_query));
+  BOOST_REQUIRE_EQUAL(testDTree.WithinRange(test_query), true);
 
   test_query << 8.5 << 2.5 << 2;
 
-  BOOST_REQUIRE(!testDTree.WithinRange_(&test_query));
+  BOOST_REQUIRE_EQUAL(testDTree.WithinRange(test_query), false);
 }
 
 BOOST_AUTO_TEST_CASE(TestFindSplit)




More information about the mlpack-svn mailing list