Verified Commit b1596234 authored by Gabriele Buondonno's avatar Gabriele Buondonno Committed by Justin Carpentier
Browse files

[unittest] [model] Test getFrameId

parent 0e956de0
......@@ -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;
......
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