1 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
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/v1/impl/is_char_c.hpp>
7 
8 #include <boost/mpl/assert.hpp>
9 #include <boost/mpl/char.hpp>
10 
11 #include "test_case.hpp"
12 
BOOST_METAPARSE_TEST_CASE(is_char_c)13 BOOST_METAPARSE_TEST_CASE(is_char_c)
14 {
15   using boost::metaparse::v1::impl::is_char_c;
16 
17   using boost::mpl::char_;
18 
19   // test_for_the_same_char
20   BOOST_MPL_ASSERT(( is_char_c<'x'>::apply<char_<'x'> > ));
21 
22   // test_for_another_char
23   BOOST_MPL_ASSERT_NOT(( is_char_c<'x'>::apply<char_<'y'> > ));
24 }
25 
26