// Copyright Abel Sinkovics (abel@sinkovics.hu) 2015. // 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) #include #include #include #include #include "test_case.hpp" BOOST_METAPARSE_TEST_CASE(next_digit) { using boost::metaparse::v1::impl::next_digit; using boost::mpl::equal_to; using boost::mpl::int_; BOOST_MPL_ASSERT((equal_to, next_digit::apply, int_<0> > >)); BOOST_MPL_ASSERT((equal_to, next_digit::apply, int_<0> > >)); BOOST_MPL_ASSERT((equal_to, next_digit::apply, int_<3> > >)); }