Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-core
Commits
bd3108d7
Commit
bd3108d7
authored
Jan 14, 2019
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
Jan 14, 2019
Browse files
Fix test since modification in commit
60f1ff33
.
parent
d8b64ff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test-config-validations.cc
View file @
bd3108d7
...
...
@@ -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"
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment