66 int test_constructor();
67 int test_constructor_defaults();
83 TestUtil test_util(
"ObsClockModel",
"constructor", __FILE__, __LINE__ );
84 std::string test_desc =
"ObsClockModel objects are created with default constructor";
85 std::string test_fail =
"class constructor failed";
90 test_util.
assert(
true,
"We have successfully constructed an ObsClockModel", __LINE__ );
94 test_util.
assert(
false,
"constructor threw an exception", __LINE__ );
103 TestUtil test_util(
"ObsClockModel",
"constructor defaults", __FILE__, __LINE__ );
104 std::string test_desc =
"ObsClockModel constructor with default values";
105 std::string test_fail =
"class constructor failed";
111 SatID testSatID( 1, SatelliteSystem::GPS );
113 test_util.
assert( testObsClockModel.
getSigmaMultiplier() == 2.0 ,
"Default sigma value is not as expected", __LINE__ );
114 test_util.
assert( testObsClockModel.
getElevationMask() == 0.0 ,
"Default elmask value is not as expected", __LINE__ );
115 test_util.
assert( testObsClockModel.
getSvMode( testSatID ) == ObsClockModel::ALWAYS ,
"Default SvMode value is not as expected", __LINE__ );
116 test_util.
assert( testObsClockModel.
getUseWonkyData() ==
false ,
"Default useWonkyData value is not as expected", __LINE__ );
118 test_util.
assert(
true,
"We have successfully tested default constructor values for ObsClockModel", __LINE__ );
122 test_util.
assert(
false,
"constructor threw an exception while testing default data member values", __LINE__ );
134 TestUtil test_util(
"ObsClockModel",
"getSvMode", __FILE__, __LINE__ );
135 std::string test_exception_msg =
"test threw an unexpected exception";
136 std::string test_fail_msg =
"get SvMode value returned did not match set SvMode value expected";
147 SatID testSatID( 1, SatelliteSystem::GPS );
150 test_util.
assert( returnedSvMode == expectedSvMode, test_fail_msg, __LINE__ );
154 test_util.
assert(
false, test_exception_msg, __LINE__ );
176 cout <<
"Total Failures for " << __FILE__ <<
": " << errorTotal << endl;
178 return( errorTotal );