[mlpack-svn] r10773 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Dec 14 07:41:57 EST 2011
Author: rcurtin
Date: 2011-12-14 07:41:57 -0500 (Wed, 14 Dec 2011)
New Revision: 10773
Modified:
mlpack/trunk/src/mlpack/tests/cli_test.cpp
Log:
Change in HasParam() changes a couple things in this test.
Modified: mlpack/trunk/src/mlpack/tests/cli_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/cli_test.cpp 2011-12-14 12:27:00 UTC (rev 10772)
+++ mlpack/trunk/src/mlpack/tests/cli_test.cpp 2011-12-14 12:41:57 UTC (rev 10773)
@@ -9,8 +9,6 @@
#include <sstream>
#include <sys/time.h>
-#include <mlpack/core/io/cli.hpp>
-#include <mlpack/core/io/log.hpp>
#include <mlpack/core.hpp>
#define DEFAULT_INT 42
@@ -37,10 +35,10 @@
// Check that the CLI::HasParam returns false if no value has been specified
// on the commandline and ignores any programmatical assignments.
CLI::Add<bool>("global/bool", "True or False", "alias/bool");
-
- // CLI::HasParam should return true here
- BOOST_REQUIRE(CLI::HasParam("global/bool"));
+ // CLI::HasParam should return false here.
+ BOOST_REQUIRE(!CLI::HasParam("global/bool"));
+
// Check the description of our variable.
BOOST_REQUIRE_EQUAL(CLI::GetDescription("global/bool").compare(
std::string("True or False")) , 0);
@@ -93,9 +91,6 @@
// this.
PARAM(int, "test_parent/test", "test desc", "", DEFAULT_INT, false);
- // Does CLI reflect this?
- BOOST_REQUIRE(CLI::HasParam("test_parent/test"));
-
std::string desc = std::string("test desc");
BOOST_REQUIRE_EQUAL(CLI::GetDescription("test_parent/test"), "test desc");
More information about the mlpack-svn
mailing list