Commit 82c36842 authored by Justin Carpentier's avatar Justin Carpentier

test/serialization: add test of the serialization of data

parent 5be10d58
......@@ -14,6 +14,7 @@
#include "pinocchio/serialization/joints.hpp"
#include "pinocchio/serialization/model.hpp"
#include "pinocchio/serialization/data.hpp"
#include "pinocchio/parsers/sample-models.hpp"
......@@ -622,4 +623,16 @@ BOOST_AUTO_TEST_CASE(test_throw_extension)
}
BOOST_AUTO_TEST_CASE(test_data_serialization)
{
using namespace pinocchio;
Model model;
buildModels::humanoidRandom(model);
Data data(model);
generic_test(data,TEST_SERIALIZATION_FOLDER"/Data","Data");
}
BOOST_AUTO_TEST_SUITE_END()
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