diff options
Diffstat (limited to 'src/boost/libs/metaparse/test/is_char_c.cpp')
-rw-r--r-- | src/boost/libs/metaparse/test/is_char_c.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/boost/libs/metaparse/test/is_char_c.cpp b/src/boost/libs/metaparse/test/is_char_c.cpp new file mode 100644 index 000000000..46f579018 --- /dev/null +++ b/src/boost/libs/metaparse/test/is_char_c.cpp @@ -0,0 +1,25 @@ +// 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 <boost/metaparse/v1/impl/is_char_c.hpp> + +#include <boost/mpl/assert.hpp> +#include <boost/mpl/char.hpp> + +#include "test_case.hpp" + +BOOST_METAPARSE_TEST_CASE(is_char_c) +{ + using boost::metaparse::v1::impl::is_char_c; + + using boost::mpl::char_; + + // test_for_the_same_char + BOOST_MPL_ASSERT(( is_char_c<'x'>::apply<char_<'x'> > )); + + // test_for_another_char + BOOST_MPL_ASSERT_NOT(( is_char_c<'x'>::apply<char_<'y'> > )); +} + |