Verified Commit 1dc540a3 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test: use non deprecated function

parent d8cc8f0b
Pipeline #12362 passed with stage
in 246 minutes and 5 seconds
//
// Copyright (c) 2016-2018 CNRS
// Copyright (c) 2016-2020 CNRS INRIA
//
#include <iostream>
......@@ -10,16 +10,16 @@
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE ( BOOST_TEST_MODULE )
BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
BOOST_AUTO_TEST_CASE ( buildModel )
BOOST_AUTO_TEST_CASE(buildModel)
{
std::string filename = PINOCCHIO_MODEL_DIR + std::string("/simple_model.py");
#ifndef NDEBUG
std::cout << "Parse filename \"" << filename << "\"" << std::endl;
#endif
pinocchio::Model model = pinocchio::python::buildModel(filename,"model",false);
pinocchio::Model model = pinocchio::python::buildModel(filename,"model");
#ifndef NDEBUG
std::cout << "This model has \"" << model.nq << "\" DoF" << std::endl;
#endif
......
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