[mlpack-git] master: Split test in 2 tests. (207c1d4)
gitdub at mlpack.org
gitdub at mlpack.org
Tue Aug 16 19:33:10 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/0f4b25acd6aaa14294c044874ba6cc0751712baa...0a19d07bd39e6223991976474bc79671ba8aa0f0
>---------------------------------------------------------------
commit 207c1d428e3ca1028144369b98d15e5c7cb9abd4
Author: MarcosPividori <marcos.pividori at gmail.com>
Date: Tue Aug 16 20:33:10 2016 -0300
Split test in 2 tests.
>---------------------------------------------------------------
207c1d428e3ca1028144369b98d15e5c7cb9abd4
src/mlpack/tests/hyperplane_test.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/tests/hyperplane_test.cpp b/src/mlpack/tests/hyperplane_test.cpp
index 98465c6..dfce1c8 100644
--- a/src/mlpack/tests/hyperplane_test.cpp
+++ b/src/mlpack/tests/hyperplane_test.cpp
@@ -40,7 +40,7 @@ BOOST_AUTO_TEST_CASE(HyperplaneEmptyConstructor)
/**
* Ensure that we get the correct hyperplane given the projection vector.
*/
-BOOST_AUTO_TEST_CASE(HyperplaneProjectionTest)
+BOOST_AUTO_TEST_CASE(ProjectionTest)
{
// General hyperplane.
ProjVector projVect1(arma::vec("1 1"));
@@ -81,7 +81,14 @@ BOOST_AUTO_TEST_CASE(HyperplaneProjectionTest)
b1.Radius() = 1.41;
BOOST_REQUIRE(!h1.Right(b1));
BOOST_REQUIRE(!h1.Left(b1));
+}
+/**
+ * Ensure that we get the correct AxisOrthogonalHyperplane given the
+ * AxisParallelProjVector.
+ */
+BOOST_AUTO_TEST_CASE(AxisOrthogonalProjectionTest)
+{
// AxisParallel hyperplane.
AxisParallelProjVector projVect2(1);
AxisOrthogonalHyperplane<EuclideanDistance> h2(projVect2, 1);
More information about the mlpack-git
mailing list