|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58414 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-12-16 07:31:16
Author: hkaiser
Date: 2009-12-16 07:31:16 EST (Wed, 16 Dec 2009)
New Revision: 58414
URL: http://svn.boost.org/trac/boost/changeset/58414
Log:
Spirit: fixing qi::repeat[] for unused attributes, augmented tests
Text files modified:
trunk/libs/spirit/test/qi/repeat.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Modified: trunk/libs/spirit/test/qi/repeat.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/repeat.cpp (original)
+++ trunk/libs/spirit/test/qi/repeat.cpp 2009-12-16 07:31:16 EST (Wed, 16 Dec 2009)
@@ -157,6 +157,11 @@
}
{
+ BOOST_TEST(test("1 2 3", int_ >> repeat(2)[int_], space));
+ BOOST_TEST(!test("1 2", int_ >> repeat(2)[int_], space));
+ }
+
+ {
std::vector<char> v;
BOOST_TEST(test_attr("1 2 3", int_ >> repeat(2)[int_], v, space));
BOOST_TEST(v.size() == 3 && v[0] == 1 && v[1] == 2 && v[2] == 3);
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