void TestObjectiveFunctional::test_set_numerical_epsilon(void) { message += "test_set_numerical_epsilon\n"; MockObjectiveFunctional mof; mof.set_numerical_epsilon(1.0e-3); assert_true(mof.get_numerical_epsilon() == 1.0e-3, LOG); }
void TestObjectiveFunctional::test_calculate_actual_epsilon(void) { message += "test_calculate_actual_epsilon\n"; MockObjectiveFunctional mof; double actual_epsilon = mof.calculate_actual_epsilon(1.0); assert_true(actual_epsilon == mof.get_numerical_epsilon(), LOG); }