old_boost_test_definitions.hpp
Go to the documentation of this file.00001
00023 #ifndef __MLPACK_TESTS_OLD_BOOST_TEST_DEFINITIONS_HPP
00024 #define __MLPACK_TESTS_OLD_BOOST_TEST_DEFINITIONS_HPP
00025
00026 #include <boost/version.hpp>
00027
00028
00029 #if BOOST_VERSION < 103600
00030
00031 #include <boost/test/floating_point_comparison.hpp>
00032 #include <boost/test/auto_unit_test.hpp>
00033
00034
00035
00036 #define BOOST_REQUIRE_GE( L, R ) \
00037 BOOST_REQUIRE_EQUAL( (L >= R), true )
00038
00039 #define BOOST_REQUIRE_NE( L, R ) \
00040 BOOST_REQUIRE_EQUAL( (L != R), true )
00041
00042 #define BOOST_REQUIRE_LE( L, R ) \
00043 BOOST_REQUIRE_EQUAL( (L <= R), true )
00044
00045 #define BOOST_REQUIRE_LT( L, R ) \
00046 BOOST_REQUIRE_EQUAL( (L < R), true )
00047
00048 #define BOOST_REQUIRE_GT( L, R ) \
00049 BOOST_REQUIRE_EQUAL( (L > R), true )
00050
00051 #endif
00052
00053 #endif