From 84dd7bfa45d52b9d409e78a8f48869f0123cb092 Mon Sep 17 00:00:00 2001 From: Eugene Freyman Date: Thu, 21 Dec 2017 11:24:32 +0200 Subject: [PATCH] renaming programName to testName --- src/mlpack/bindings/tests/test_option.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mlpack/bindings/tests/test_option.hpp b/src/mlpack/bindings/tests/test_option.hpp index f80596d580..8f915d3022 100644 --- a/src/mlpack/bindings/tests/test_option.hpp +++ b/src/mlpack/bindings/tests/test_option.hpp @@ -53,6 +53,8 @@ class TestOption * @param input Whether or not the option is an input option. * @param noTranspose If the parameter is a matrix and this is true, then the * matrix will not be transposed on loading. + * @param testName Name of the test (used for identifiying which binding test + * this option belongs to) */ TestOption(const N defaultValue, const std::string& identifier, @@ -62,7 +64,7 @@ class TestOption const bool required = false, const bool input = true, const bool noTranspose = false, - const std::string& programName = "") + const std::string& testName = "") { // Create the ParamData object to give to CLI. util::ParamData data; @@ -82,7 +84,7 @@ class TestOption const std::string tname = data.tname; - CLI::RestoreSettings(programName, false); + CLI::RestoreSettings(testName, false); // Set some function pointers that we need. CLI::GetSingleton().functionMap[tname]["GetPrintableParam"] = @@ -95,7 +97,7 @@ class TestOption if (!input) CLI::SetPassed(identifier); - CLI::StoreSettings(programName); + CLI::StoreSettings(testName); CLI::ClearSettings(); } };