8 #include "utils/macros.hpp"
10 #include <boost/test/unit_test.hpp>
11 #include <boost/utility/binary.hpp>
13 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
20 const string delimiter =
".";
21 ostringstream version_ref;
22 version_ref << PINOCCHIO_MAJOR_VERSION << delimiter << PINOCCHIO_MINOR_VERSION << delimiter
23 << PINOCCHIO_PATCH_VERSION;
25 BOOST_CHECK_EQUAL(version_ref.str().c_str(),
printVersion());
29 checkVersionAtLeast(PINOCCHIO_MAJOR_VERSION, PINOCCHIO_MINOR_VERSION, PINOCCHIO_PATCH_VERSION));
31 PINOCCHIO_MAJOR_VERSION, PINOCCHIO_MINOR_VERSION, PINOCCHIO_PATCH_VERSION + 1));
35 BOOST_AUTO_TEST_SUITE_END()