Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
b1596234
Verified
Commit
b1596234
authored
May 08, 2020
by
Gabriele Buondonno
Committed by
Justin Carpentier
May 12, 2020
Browse files
[unittest] [model] Test getFrameId
parent
0e956de0
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/model.cpp
View file @
b1596234
...
...
@@ -49,6 +49,18 @@ BOOST_AUTO_TEST_SUITE ( BOOST_TEST_MODULE )
}
}
BOOST_AUTO_TEST_CASE
(
test_model_get_frame_id
)
{
Model
model
;
buildModels
::
humanoidRandom
(
model
);
for
(
FrameIndex
i
=
0
;
i
<
static_cast
<
FrameIndex
>
(
model
.
nframes
);
i
++
)
{
BOOST_CHECK_EQUAL
(
i
,
model
.
getFrameId
(
model
.
frames
[
i
].
name
));
}
BOOST_CHECK_EQUAL
(
model
.
nframes
,
model
.
getFrameId
(
"NOT_A_FRAME"
));
}
BOOST_AUTO_TEST_CASE
(
test_model_support
)
{
Model
model
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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