Commit bd3108d7 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Fix test since modification in commit 60f1ff33.

parent d8b64ff4
......@@ -49,13 +49,14 @@ BOOST_AUTO_TEST_CASE ( test_add_config_validation )
ProblemSolverPtr_t ps = ProblemSolver::create ();
ps->robot ( ps->createRobot ("robot") );
ProblemPtr_t problem = ps->problem ();
ConfigValidationsPtr_t configValidations = problem->configValidations ();
ps->clearConfigValidations ();
BOOST_CHECK_MESSAGE (configValidations->numberConfigValidations () == 0,
"Clearing ConfigValidations did not work");
BOOST_CHECK_MESSAGE
(problem->configValidations ()->numberConfigValidations () == 0,
"Clearing ConfigValidations did not work");
ps->addConfigValidation ("CollisionValidation");
BOOST_CHECK_MESSAGE (configValidations->numberConfigValidations () == 1,
"Adding CollisionValidation to the ProblemSolver did not work");
}
\ No newline at end of file
BOOST_CHECK_MESSAGE
(problem->configValidations ()->numberConfigValidations () == 1,
"Adding CollisionValidation to the ProblemSolver did not work");
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment