]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/test/is_char_c.cpp
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)
6 #include <boost/metaparse/v1/impl/is_char_c.hpp>
8 #include <boost/mpl/assert.hpp>
9 #include <boost/mpl/char.hpp>
11 #include "test_case.hpp"
13 BOOST_METAPARSE_TEST_CASE(is_char_c
)
15 using boost::metaparse::v1::impl::is_char_c
;
17 using boost::mpl::char_
;
19 // test_for_the_same_char
20 BOOST_MPL_ASSERT(( is_char_c
<'x'>::apply
<char_
<'x'> > ));
22 // test_for_another_char
23 BOOST_MPL_ASSERT_NOT(( is_char_c
<'x'>::apply
<char_
<'y'> > ));