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 // This is only necessary for pre-1.36 Boost.Test.
00029 #if BOOST_VERSION < 103600
00030 
00031 #include <boost/test/floating_point_comparison.hpp>
00032 #include <boost/test/auto_unit_test.hpp>
00033 
00034 // This depends on other macros.  Probably not a great idea... but it works, and
00035 // we only need it for ancient Boost versions.
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

Generated on 13 Aug 2014 for MLPACK by  doxygen 1.6.1