Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55369 - trunk/libs/spirit/test/karma
From: hartmut.kaiser_at_[hidden]
Date: 2009-08-02 14:14:48


Author: hkaiser
Date: 2009-08-02 14:14:47 EDT (Sun, 02 Aug 2009)
New Revision: 55369
URL: http://svn.boost.org/trac/boost/changeset/55369

Log:
Spirit: fixed test cases for semantics of self contained karma kleene/plus generators

Text files modified:
   trunk/libs/spirit/test/karma/kleene.cpp | 5 ++---
   trunk/libs/spirit/test/karma/plus.cpp | 5 ++---
   2 files changed, 4 insertions(+), 6 deletions(-)

Modified: trunk/libs/spirit/test/karma/kleene.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/kleene.cpp (original)
+++ trunk/libs/spirit/test/karma/kleene.cpp 2009-08-02 14:14:47 EDT (Sun, 02 Aug 2009)
@@ -14,7 +14,6 @@
 #include <boost/spirit/include/karma_generate.hpp>
 #include <boost/spirit/include/karma_operator.hpp>
 #include <boost/spirit/include/karma_action.hpp>
-#include <boost/spirit/include/karma_auxiliary.hpp>
 #include <boost/fusion/include/vector.hpp>
 #include <boost/spirit/include/phoenix_core.hpp>
 #include <boost/spirit/include/phoenix_operator.hpp>
@@ -64,9 +63,9 @@
         BOOST_TEST(test_delimited("10 , 20 , 30 , ", *(int_ << ','), v, lit(" ")));
  
         fusion::vector<char, char> cc ('a', 'c');
- BOOST_TEST(test("ac", char_ << *(eps(false) << ',') << char_, cc));
+ BOOST_TEST(test("ac", char_ << *(char_(' ') << ',') << char_, cc));
         BOOST_TEST(test_delimited("a c ",
- char_ << *(eps(false) << ',') << char_, cc, " "));
+ char_ << *(char_(' ') << ',') << char_, cc, " "));
     }
 
     { // actions

Modified: trunk/libs/spirit/test/karma/plus.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/plus.cpp (original)
+++ trunk/libs/spirit/test/karma/plus.cpp 2009-08-02 14:14:47 EDT (Sun, 02 Aug 2009)
@@ -14,7 +14,6 @@
 #include <boost/spirit/include/karma_generate.hpp>
 #include <boost/spirit/include/karma_operator.hpp>
 #include <boost/spirit/include/karma_action.hpp>
-#include <boost/spirit/include/karma_auxiliary.hpp>
 #include <boost/fusion/include/vector.hpp>
 #include <boost/spirit/include/phoenix_core.hpp>
 #include <boost/spirit/include/phoenix_operator.hpp>
@@ -68,9 +67,9 @@
         BOOST_TEST(test_delimited("10 , 20 , 30 , ", +(int_ << ','), v, lit(" ")));
  
         fusion::vector<char, char> cc ('a', 'c');
- BOOST_TEST(test("ac", char_ << &+(eps(false) << ',') << char_, cc));
+ BOOST_TEST(test("ac", char_ << !+(char_(' ') << ',') << char_, cc));
         BOOST_TEST(test_delimited("a c ",
- char_ << &+(eps(false) << ',') << char_, cc, " "));
+ char_ << !+(char_(' ') << ',') << char_, cc, " "));
     }
 
     { // actions


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