]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/test/in_range_c.cpp
1 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2014.
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/util/in_range_c.hpp>
10 #include <boost/mpl/apply_wrap.hpp>
11 #include <boost/mpl/not.hpp>
12 #include <boost/mpl/assert.hpp>
14 #include "test_case.hpp"
16 BOOST_METAPARSE_TEST_CASE(util_in_range_c
)
18 using boost::metaparse::util::in_range_c
;
20 using boost::mpl::apply_wrap1
;
21 using boost::mpl::not_
;
24 BOOST_MPL_ASSERT((apply_wrap1
<in_range_c
<char, 'a', 'g'>, char_e
>));
27 BOOST_MPL_ASSERT((apply_wrap1
<in_range_c
<char, 'a', 'g'>, char_a
>));
30 BOOST_MPL_ASSERT((apply_wrap1
<in_range_c
<int, 10, 13>, int13
>));
32 // test_int_not_in_range
33 BOOST_MPL_ASSERT((not_
<apply_wrap1
<in_range_c
<int, 10, 13>, int14
> >));