1 | /*============================================================================= |
---|---|
2 | Copyright (c) 2001-2010 Joel de Guzman |
3 | |
4 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | =============================================================================*/ |
7 | #include <boost/spirit/include/qi_and_predicate.hpp> |
8 | |
9 | #include <boost/spirit/include/qi_int.hpp> |
10 | #include "test.hpp" |
11 | |
12 | int |
13 | main() |
14 | { |
15 | using spirit_test::test; |
16 | using boost::spirit::int_; |
17 | |
18 | { |
19 | BOOST_TEST((test("1234", &int_, false))); |
20 | BOOST_TEST((!test("abcd", &int_))); |
21 | } |
22 | |
23 | return boost::report_errors(); |
24 | } |
25 |