]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright Abel Sinkovics (abel@sinkovics.hu) 2011. |
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 | // This header file contains code that is reused by other cpp files | |
7 | ||
8 | #include <boost/metaparse/start.hpp> | |
9 | #include <boost/metaparse/is_error.hpp> | |
10 | ||
11 | #include <boost/mpl/apply_wrap.hpp> | |
12 | #include <boost/mpl/assert.hpp> | |
13 | ||
14 | #include <boost/preprocessor/cat.hpp> | |
15 | ||
16 | #include "test_case.hpp" | |
17 | ||
18 | BOOST_METAPARSE_TEST_CASE(BOOST_PP_CAT(TEST_NAME, _except)) | |
19 | { | |
20 | using boost::metaparse::is_error; | |
21 | using boost::metaparse::start; | |
22 | ||
23 | using boost::mpl::apply_wrap2; | |
24 | ||
25 | // rejects_except_char | |
26 | BOOST_MPL_ASSERT((is_error<apply_wrap2<oc, str_0, start> >)); | |
27 | ||
28 | // rejects_other_except_char | |
29 | BOOST_MPL_ASSERT((is_error<apply_wrap2<oc, str_1, start> >)); | |
30 | } | |
31 | ||
32 | #include "one_char_test.hpp" | |
33 |