diff --git a/test/filter_view.cpp b/test/filter_view.cpp index 35210a5..2ae5754 100644 --- a/test/filter_view.cpp +++ b/test/filter_view.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -26,6 +27,10 @@ MPL_TEST_CASE() { typedef mpl::list types; + typedef mpl::list floats; + + MPL_ASSERT(( equal< mpl::filter_view< types,boost::is_float<_> >::type,floats > )); + typedef mpl::max_element< mpl::transform_view< mpl::filter_view< types,boost::is_float<_> > diff --git a/test/joint_view.cpp b/test/joint_view.cpp index f71958a..17f824c 100644 --- a/test/joint_view.cpp +++ b/test/joint_view.cpp @@ -30,6 +30,7 @@ MPL_TEST_CASE() typedef range_c answer; MPL_ASSERT(( equal )); + MPL_ASSERT(( equal )); MPL_ASSERT_RELATION( size::value, ==, 15 ); } diff --git a/test/single_view.cpp b/test/single_view.cpp index c46096e..18169d3 100644 --- a/test/single_view.cpp +++ b/test/single_view.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include MPL_TEST_CASE() @@ -37,4 +38,6 @@ MPL_TEST_CASE() MPL_ASSERT_RELATION( (mpl::distance::value), ==, 0 ); MPL_ASSERT_RELATION( size::value, ==, 1 ); + + MPL_ASSERT(( equal< view, view::type > )); } diff --git a/test/transform_view.cpp b/test/transform_view.cpp index bc1fbcf..ff8fe6b 100644 --- a/test/transform_view.cpp +++ b/test/transform_view.cpp @@ -16,12 +16,22 @@ #include #include #include +#include #include - MPL_TEST_CASE() { typedef list types; + typedef list< + sizeof_::type, + sizeof_::type, + sizeof_::type, + sizeof_::type, + sizeof_::type + > sizes; + + MPL_ASSERT(( equal< transform_view< types, sizeof_<_> >::type,sizes > )); + typedef max_element< transform_view< types, sizeof_<_> > >::type iter;