Fixed tests compilation.

This commit is contained in:
Andrey Semashev
2014-08-31 14:09:10 +04:00
parent 64f50f82aa
commit 9bbc806090
35 changed files with 59 additions and 44 deletions
+14 -13
View File
@@ -23,6 +23,7 @@
#include <boost/mpl/aux_/test.hpp>
#include <boost/type_traits/is_same.hpp>
MPL_TEST_CASE()
{
@@ -41,12 +42,12 @@ MPL_TEST_CASE()
MPL_ASSERT_NOT(( empty<d2> ));
MPL_ASSERT_NOT(( empty<d9> ));
MPL_ASSERT(( is_same< front<d1>::type,char > ));
MPL_ASSERT(( is_same< back<d1>::type,char > ));
MPL_ASSERT(( is_same< front<d2>::type,char > ));
MPL_ASSERT(( is_same< back<d2>::type,long > ));
MPL_ASSERT(( is_same< front<d9>::type,char > ));
MPL_ASSERT(( is_same< back<d9>::type,int > ));
MPL_ASSERT(( boost::is_same< front<d1>::type,char > ));
MPL_ASSERT(( boost::is_same< back<d1>::type,char > ));
MPL_ASSERT(( boost::is_same< front<d2>::type,char > ));
MPL_ASSERT(( boost::is_same< back<d2>::type,long > ));
MPL_ASSERT(( boost::is_same< front<d9>::type,char > ));
MPL_ASSERT(( boost::is_same< back<d9>::type,int > ));
}
@@ -58,9 +59,9 @@ MPL_TEST_CASE()
typedef next<i1>::type i2;
typedef next<i2>::type i3;
MPL_ASSERT(( is_same<deref<i1>::type,char> ));
MPL_ASSERT(( is_same<deref<i2>::type,long> ));
MPL_ASSERT(( is_same< i3, end<d2>::type > ));
MPL_ASSERT(( boost::is_same<deref<i1>::type,char> ));
MPL_ASSERT(( boost::is_same<deref<i2>::type,long> ));
MPL_ASSERT(( boost::is_same< i3, end<d2>::type > ));
}
MPL_TEST_CASE()
@@ -68,14 +69,14 @@ MPL_TEST_CASE()
typedef deque<> d0;
typedef push_back<d0,int>::type d1;
MPL_ASSERT(( is_same< back<d1>::type,int > ));
MPL_ASSERT(( boost::is_same< back<d1>::type,int > ));
typedef push_front<d1,char>::type d2;
MPL_ASSERT(( is_same< back<d2>::type,int > ));
MPL_ASSERT(( is_same< front<d2>::type,char > ));
MPL_ASSERT(( boost::is_same< back<d2>::type,int > ));
MPL_ASSERT(( boost::is_same< front<d2>::type,char > ));
typedef push_back<d2,long>::type d3;
MPL_ASSERT(( is_same< back<d3>::type,long > ));
MPL_ASSERT(( boost::is_same< back<d3>::type,long > ));
}
MPL_TEST_CASE()