]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/test/fail.cpp
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)
6 #include <boost/metaparse/fail.hpp>
7 #include <boost/metaparse/is_error.hpp>
8 #include <boost/metaparse/start.hpp>
12 #include <boost/mpl/apply_wrap.hpp>
13 #include <boost/mpl/assert.hpp>
15 #include "test_case.hpp"
17 BOOST_METAPARSE_TEST_CASE(fail
)
19 using boost::metaparse::is_error
;
20 using boost::metaparse::fail
;
21 using boost::metaparse::start
;
23 using boost::mpl::apply_wrap2
;
25 // test_fail_for_non_empty_string
27 is_error
<apply_wrap2
<fail
<test_failure
>, str_hello
, start
> >