msgpack/test/version.cpp
Daniil Kovalev 7b7615a6d9
Modernize codebase
- Enhance CMakeLists.txt files.
- Move to Boost Test from Google Test to support pre-C++11 compilers.
- Add more configurations on CI matrix builds.
- Other minor fixes
2021-07-01 18:17:20 +03:00

19 lines
764 B
C++

#include <msgpack.hpp>
#define BOOST_TEST_MODULE version
#include <boost/test/unit_test.hpp>
#include <cstdio>
BOOST_AUTO_TEST_CASE(print)
{
std::printf("MSGPACK_VERSION : %s\n", MSGPACK_VERSION);
std::printf("MSGPACK_VERSION_MAJOR : %d\n", MSGPACK_VERSION_MAJOR);
std::printf("MSGPACK_VERSION_MINOR : %d\n", MSGPACK_VERSION_MINOR);
std::printf("MSGPACK_VERSION_REVISION : %d\n", MSGPACK_VERSION_REVISION);
std::printf("msgpack_version() : %s\n", msgpack_version());
std::printf("msgpack_version_major() : %d\n", msgpack_version_major());
std::printf("msgpack_version_minor() : %d\n", msgpack_version_minor());
std::printf("msgpack_version_revision() : %d\n", msgpack_version_revision());
}