|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69092 - trunk/libs/spirit/test/karma
From: hartmut.kaiser_at_[hidden]
Date: 2011-02-20 14:27:23
Author: hkaiser
Date: 2011-02-20 14:27:22 EST (Sun, 20 Feb 2011)
New Revision: 69092
URL: http://svn.boost.org/trac/boost/changeset/69092
Log:
Spirit: fixed karma::repeat to use the new attribute propagation scheme as well, adding tests
Text files modified:
trunk/libs/spirit/test/karma/repeat2.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
Modified: trunk/libs/spirit/test/karma/repeat2.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/repeat2.cpp (original)
+++ trunk/libs/spirit/test/karma/repeat2.cpp 2011-02-20 14:27:22 EST (Sun, 20 Feb 2011)
@@ -49,14 +49,14 @@
BOOST_TEST(test_delimited("A B C D E F G H ", upper[repeat(8)[char_]], str, space));
}
-// {
-// std::string s1 = "aaaaa";
-// BOOST_TEST(test("aaaaa", char_ << repeat(2)[char_ << char_], s1));
-// s1 = "aaa";
-// BOOST_TEST(test("aaa", char_ << repeat(1, 2)[char_ << char_], s1));
-// s1 = "aa";
-// BOOST_TEST(!test("", char_ << repeat(1)[char_ << char_], s1));
-// }
+ {
+ std::string s1 = "aaaaa";
+ BOOST_TEST(test("aaaaa", char_ << repeat(2)[char_ << char_], s1));
+ s1 = "aaa";
+ BOOST_TEST(test("aaa", char_ << repeat(1, 2)[char_ << char_], s1));
+ s1 = "aa";
+ BOOST_TEST(!test("", char_ << repeat(1)[char_ << char_], s1));
+ }
{ // actions
namespace phx = boost::phoenix;
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