]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/test/is_digit.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / metaparse / test / is_digit.cpp
1 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2010.
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/util/is_digit.hpp>
7
8 #include "common.hpp"
9
10 #include <boost/mpl/apply_wrap.hpp>
11 #include <boost/mpl/not.hpp>
12 #include <boost/mpl/assert.hpp>
13
14 #include "test_case.hpp"
15
16 BOOST_METAPARSE_TEST_CASE(util_is_digit)
17 {
18 using boost::metaparse::util::is_digit;
19
20 using boost::mpl::apply_wrap1;
21 using boost::mpl::not_;
22
23 // test_digit
24 BOOST_MPL_ASSERT((apply_wrap1<is_digit<>, char_7>));
25
26 // test_non_digit
27 BOOST_MPL_ASSERT((not_<apply_wrap1<is_digit<>, char_a> >));
28 }
29
30