Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59521 - trunk/libs/spirit/test/qi
From: joel_at_[hidden]
Date: 2010-02-05 21:15:35


Author: djowel
Date: 2010-02-05 21:15:34 EST (Fri, 05 Feb 2010)
New Revision: 59521
URL: http://svn.boost.org/trac/boost/changeset/59521

Log:
added hold directive
Text files modified:
   trunk/libs/spirit/test/qi/hold.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/test/qi/hold.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/hold.cpp (original)
+++ trunk/libs/spirit/test/qi/hold.cpp 2010-02-05 21:15:34 EST (Fri, 05 Feb 2010)
@@ -26,6 +26,9 @@
         std::vector<int> vec;
         BOOST_TEST((!test_attr("1$", hold[int_ >> ';'], vec)));
         BOOST_TEST(vec.size() == 0);
+ BOOST_TEST((test_attr("1;", hold[int_ >> ';'], vec)));
+ BOOST_TEST(vec.size() == 1);
+ BOOST_TEST(vec[0] == 1);
     }
 
     return boost::report_errors();


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk