]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/xpressive/test/test_static.cpp
1 ///////////////////////////////////////////////////////////////////////////////
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)
8 #include <boost/xpressive/xpressive_static.hpp>
9 #include <boost/test/unit_test.hpp>
11 ///////////////////////////////////////////////////////////////////////////////
15 using namespace boost::xpressive
;
17 std::string
str("bar");
18 sregex rx
= 'b' >> *_
>> "ar";
21 if(!regex_match(str
, what
, rx
))
27 using namespace boost::unit_test
;
29 ///////////////////////////////////////////////////////////////////////////////
30 // init_unit_test_suite
32 test_suite
* init_unit_test_suite( int argc
, char* argv
[] )
34 test_suite
*test
= BOOST_TEST_SUITE("test_static");
35 test
->add(BOOST_TEST_CASE(&test_main
));