summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/metaparse/test/one_char_except_test.hpp
blob: 47ab60cad0e2846620b1fa93be308d4623dc6ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2011.
// 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)

// This header file contains code that is reused by other cpp files

#include <boost/metaparse/start.hpp>
#include <boost/metaparse/is_error.hpp>

#include <boost/mpl/apply_wrap.hpp>
#include <boost/mpl/assert.hpp>

#include <boost/preprocessor/cat.hpp>

#include "test_case.hpp"

BOOST_METAPARSE_TEST_CASE(BOOST_PP_CAT(TEST_NAME, _except))
{
  using boost::metaparse::is_error;
  using boost::metaparse::start;

  using boost::mpl::apply_wrap2;
  
  // rejects_except_char
  BOOST_MPL_ASSERT((is_error<apply_wrap2<oc, str_0, start> >));

  // rejects_other_except_char
  BOOST_MPL_ASSERT((is_error<apply_wrap2<oc, str_1, start> >));
}

#include "one_char_test.hpp"