[mlpack-svn] r14174 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jan 29 18:29:40 EST 2013
Author: rcurtin
Date: 2013-01-29 18:29:39 -0500 (Tue, 29 Jan 2013)
New Revision: 14174
Modified:
mlpack/trunk/src/mlpack/tests/kmeans_test.cpp
Log:
Exclude Armadillo 3.4 from K-Means sparse test because sparse var() was not
implemented in that particular release.
Modified: mlpack/trunk/src/mlpack/tests/kmeans_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/kmeans_test.cpp 2013-01-29 23:26:53 UTC (rev 14173)
+++ mlpack/trunk/src/mlpack/tests/kmeans_test.cpp 2013-01-29 23:29:39 UTC (rev 14174)
@@ -207,6 +207,9 @@
}
#ifdef ARMA_HAS_SPMAT
+// Can't do this test on Armadillo 3.4; var(SpBase) is not implemented.
+#if !((ARMA_MAJOR_VERSION == 3) && (ARMA_MINOR_VERSION == 4))
+
/**
* Make sure sparse k-means works okay.
*/
@@ -249,6 +252,7 @@
BOOST_REQUIRE_EQUAL(assignments[10], clusterTwo);
BOOST_REQUIRE_EQUAL(assignments[11], clusterTwo);
}
+#endif // Exclude Armadillo 3.4.
#endif // ARMA_HAS_SPMAT
BOOST_AUTO_TEST_SUITE_END();
More information about the mlpack-svn
mailing list