#include "sign.hpp" #define BOOST_TEST_MODULE sign_test #include #include #include #include BOOST_AUTO_TEST_CASE( test_sign ) { using namespace temp; BOOST_MPL_ASSERT(( boost::is_same::type, positive_type> )); BOOST_MPL_ASSERT(( boost::is_same::type, negative_type> )); BOOST_STATIC_ASSERT(( sign<+1>::value * sign<+1>::value == +1 )); BOOST_STATIC_ASSERT(( sign<-1>::value * sign<-1>::value == +1 )); BOOST_STATIC_ASSERT(( sign<+1>::value * sign<-1>::value == -1 )); }