Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56582 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-04 17:20:31


Author: hkaiser
Date: 2009-10-04 17:20:30 EDT (Sun, 04 Oct 2009)
New Revision: 56582
URL: http://svn.boost.org/trac/boost/changeset/56582

Log:
Spirit: fixing transform_attribute::post for the generic case, more tests
Text files modified:
   trunk/libs/spirit/test/qi/attribute.cpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/test/qi/attribute.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/attribute.cpp (original)
+++ trunk/libs/spirit/test/qi/attribute.cpp 2009-10-04 17:20:30 EDT (Sun, 04 Oct 2009)
@@ -178,6 +178,14 @@
     }
 
     {
+ std::vector<double> v;
+ qi::rule<char const*, int()> r = qi::int_;
+
+ BOOST_TEST(test_attr("1,2", r % ',', v));
+ BOOST_TEST(v.size() == 2 && v[0] == 1.0 && v[1] == 2.0);
+ }
+
+ {
         std::vector<test_int_data1> v;
 
 // this won't compile as there is no defined transformation for


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