]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/xpressive/test/test2.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / xpressive / test / test2.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // test2.cpp
3 //
4 // Copyright 2008 Eric Niebler. Distributed under the Boost
5 // Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8 #include <algorithm>
9 #include "./test2.hpp"
10
11 ///////////////////////////////////////////////////////////////////////////////
12 // test_main
13 // read the tests from the input file and execute them
14 void test_main()
15 {
16 typedef std::string::const_iterator iterator_type;
17 boost::iterator_range<xpr_test_case<iterator_type> const *> rng = get_test_cases<iterator_type>();
18 std::for_each(rng.begin(), rng.end(), test_runner<iterator_type>());
19 }
20
21 ///////////////////////////////////////////////////////////////////////////////
22 // init_unit_test_suite
23 //
24 test_suite* init_unit_test_suite( int argc, char* argv[] )
25 {
26 test_suite *test = BOOST_TEST_SUITE("test2");
27 test->add(BOOST_TEST_CASE(&test_main));
28 return test;
29 }