1 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2010. 2 // Distributed under the Boost Software License, Version 1.0. 3 // (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 #include <boost/metaparse/fail.hpp> 7 #include <boost/metaparse/is_error.hpp> 8 #include <boost/metaparse/start.hpp> 9 10 #include "common.hpp" 11 12 #include <boost/mpl/apply_wrap.hpp> 13 #include <boost/mpl/assert.hpp> 14 15 #include "test_case.hpp" 16 BOOST_METAPARSE_TEST_CASE(fail)17BOOST_METAPARSE_TEST_CASE(fail) 18 { 19 using boost::metaparse::is_error; 20 using boost::metaparse::fail; 21 using boost::metaparse::start; 22 23 using boost::mpl::apply_wrap2; 24 25 // test_fail_for_non_empty_string 26 BOOST_MPL_ASSERT(( 27 is_error<apply_wrap2<fail<test_failure>, str_hello, start> > 28 )); 29 } 30 31