// Copyright Abel Sinkovics (abel@sinkovics.hu) 2010. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include #include #include "common.hpp" #include #include #include #include "test_case.hpp" namespace { using boost::metaparse::return_; using boost::mpl::apply_wrap2; typedef apply_wrap2, int2, int3> acc; typedef return_ return_x; } BOOST_METAPARSE_TEST_CASE(return) { using boost::metaparse::get_result; using boost::metaparse::get_remaining; using boost::metaparse::get_position; using boost::metaparse::start; using boost::mpl::equal_to; // test_for_non_empty_string BOOST_MPL_ASSERT(( equal_to >::type, char_x> )); // test_for_empty_string BOOST_MPL_ASSERT(( equal_to >::type, char_x> )); // test_get_result BOOST_MPL_ASSERT((equal_to::type>)); // test_get_remaining BOOST_MPL_ASSERT((equal_to::type>)); // test_get_position BOOST_MPL_ASSERT((equal_to::type>)); }