[mlpack-svn] r10908 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Dec 20 11:31:12 EST 2011
Author: rcurtin
Date: 2011-12-20 11:31:12 -0500 (Tue, 20 Dec 2011)
New Revision: 10908
Modified:
mlpack/trunk/src/mlpack/tests/tree_test.cpp
Log:
Fixes for old Boost.UnitTestFramework.
Modified: mlpack/trunk/src/mlpack/tests/tree_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/tree_test.cpp 2011-12-20 16:28:12 UTC (rev 10907)
+++ mlpack/trunk/src/mlpack/tests/tree_test.cpp 2011-12-20 16:31:12 UTC (rev 10908)
@@ -25,7 +25,7 @@
{
HRectBound<2> b;
- BOOST_REQUIRE_EQUAL(b.Dim(), 0);
+ BOOST_REQUIRE_EQUAL((int) b.Dim(), 0);
}
/**
@@ -846,7 +846,7 @@
d[0] = Range(-10.0, 10.0); // Box is of infinite size.
point[0] = 810.0; // 800 away from the only image of the box.
- BOOST_REQUIRE_CLOSE(d.MinDistance(point), 640000, 1e-5);
+ BOOST_REQUIRE_CLOSE(d.MinDistance(point), 640000.0, 1e-5);
PeriodicHRectBound<2> e(arma::vec("-5.0"));
e[0] = Range(2.0, 4.0); // Box size of -5 should function the same as 5.
@@ -961,7 +961,7 @@
a[0] = Range(2.0, 3.0);
d[0] = Range(9.5, 11);
- BOOST_REQUIRE_CLOSE(a.MinDistance(d), 1, 1e-5);
+ BOOST_REQUIRE_CLOSE(a.MinDistance(d), 1.0, 1e-5);
}
More information about the mlpack-svn
mailing list