Boost logo

Boost-Commit :

From: joel_at_[hidden]
Date: 2008-04-18 22:14:11


Author: djowel
Date: 2008-04-18 22:14:11 EDT (Fri, 18 Apr 2008)
New Revision: 44570
URL: http://svn.boost.org/trac/boost/changeset/44570

Log:
no-case for chsets
Text files modified:
   trunk/libs/spirit/test/qi/actions.cpp | 9 +++++----
   trunk/libs/spirit/test/qi/no_case.cpp | 7 +++++++
   2 files changed, 12 insertions(+), 4 deletions(-)

Modified: trunk/libs/spirit/test/qi/actions.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/actions.cpp (original)
+++ trunk/libs/spirit/test/qi/actions.cpp 2008-04-18 22:14:11 EDT (Fri, 18 Apr 2008)
@@ -44,11 +44,12 @@
     }
 
     {
- char const *s1 = "{42}", *e1 = s1 + std::strlen(s1);
- qi::parse(s1, e1, '{' >> int_[fun2] >> '}');
+ // $$$ uncomment me! $$$
+ //~ char const *s1 = "{42}", *e1 = s1 + std::strlen(s1);
+ //~ qi::parse(s1, e1, '{' >> int_[fun2] >> '}');
 
- int ii;
- boost::spirit::detail::action_dispatch(fun2, ii, ii);
+ //~ int ii;
+ //~ boost::spirit::detail::action_dispatch(fun2, ii, ii);
     }
 
     {

Modified: trunk/libs/spirit/test/qi/no_case.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/no_case.cpp (original)
+++ trunk/libs/spirit/test/qi/no_case.cpp 2008-04-18 22:14:11 EDT (Fri, 18 Apr 2008)
@@ -91,5 +91,12 @@
         BOOST_TEST(!test(":", no_case[upper]));
     }
 
+ {
+ using namespace boost::spirit::standard;
+ // chsets
+ BOOST_TEST(test("x", no_case[char_("a-z")]));
+ BOOST_TEST(test("X", no_case[char_("a-z")]));
+ }
+
     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