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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Jun 12 13:39:18 EDT 2013


Author: rcurtin
Date: 2013-06-12 13:39:17 -0400 (Wed, 12 Jun 2013)
New Revision: 15231

Modified:
   mlpack/trunk/src/mlpack/tests/det_test.cpp
Log:
logNegError is private, so don't test that on Windows.


Modified: mlpack/trunk/src/mlpack/tests/det_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/det_test.cpp	2013-06-12 17:19:40 UTC (rev 15230)
+++ mlpack/trunk/src/mlpack/tests/det_test.cpp	2013-06-12 17:39:17 UTC (rev 15231)
@@ -193,12 +193,14 @@
   BOOST_REQUIRE(testDTree.Right()->SplitDim() == 1);
   BOOST_REQUIRE_CLOSE(testDTree.Right()->SplitValue(), 0.5, 1e-5);
 
-  // Test node errors for every node.
+  // Test node errors for every node (these are private functions).
+#ifndef _WIN32
   BOOST_REQUIRE_CLOSE(testDTree.logNegError, rootError, 1e-10);
   BOOST_REQUIRE_CLOSE(testDTree.Left()->logNegError, lError, 1e-10);
   BOOST_REQUIRE_CLOSE(testDTree.Right()->logNegError, rError, 1e-10);
   BOOST_REQUIRE_CLOSE(testDTree.Right()->Left()->logNegError, rlError, 1e-10);
   BOOST_REQUIRE_CLOSE(testDTree.Right()->Right()->logNegError, rrError, 1e-10);
+#endif
 
   // Test alpha.
   double rootAlpha, rAlpha;




More information about the mlpack-svn mailing list