45 #include "AbstractLinAlgPack_VectorSpaceTesterSetOptions.hpp"
46 #include "OptionsFromStreamPack_StringToBool.hpp"
51 const int local_num_options = 6;
62 const char* local_SOptions[local_num_options] = {
73 namespace AbstractLinAlgPack {
77 ,
const char opt_grp_name[] )
78 : OptionsFromStreamPack::SetOptionsFromStreamNode(
79 opt_grp_name, local_num_options, local_SOptions )
80 , OptionsFromStreamPack::SetOptionsToTargetBase<
85 int option_num,
const std::string& option_value )
87 using OptionsFromStreamPack::StringToBool;
89 switch( (local_EOptions)option_num ) {
92 StringToBool(
"print_all_tests", option_value.c_str() )
97 StringToBool(
"print_vectors", option_value.c_str() )
102 StringToBool(
"throw_exception", option_value.c_str() )
105 case NUM_RANDOM_TESTS:
106 target().num_random_tests(std::abs(std::atoi(option_value.c_str())));
109 target().warning_tol(std::abs(std::atof(option_value.c_str())));
112 target().error_tol(std::abs(std::atof(option_value.c_str())));
VectorSpaceTesterSetOptions(VectorSpaceTester *target=0, const char opt_grp_name[]="VectorSpaceTester")
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Testing class for VectorSpace, Vector and VectorMutable.
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)