Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61321 - trunk/libs/spirit/test/karma
From: hartmut.kaiser_at_[hidden]
Date: 2010-04-16 14:01:03


Author: hkaiser
Date: 2010-04-16 14:01:02 EDT (Fri, 16 Apr 2010)
New Revision: 61321
URL: http://svn.boost.org/trac/boost/changeset/61321

Log:
Spirit: added single character syntax for character ranges for Karma as well, added tests
Text files modified:
   trunk/libs/spirit/test/karma/char.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/test/karma/char.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/char.cpp (original)
+++ trunk/libs/spirit/test/karma/char.cpp 2010-04-16 14:01:02 EDT (Fri, 16 Apr 2010)
@@ -127,6 +127,9 @@
 
         BOOST_TEST(test(L"x", char_(L"x")));
 
+ BOOST_TEST(test("a", char_("a", "z"), 'a'));
+ BOOST_TEST(test(L"a", char_(L"a", L"z"), L'a'));
+
 #if defined(KARMA_FAIL_COMPILATION)
         BOOST_TEST(test("x", char_)); // anychar without a parameter doesn't make any sense
 #endif


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