|
Boost-Commit : |
From: joel_at_[hidden]
Date: 2008-04-27 04:44:38
Author: djowel
Date: 2008-04-27 04:44:38 EDT (Sun, 27 Apr 2008)
New Revision: 44814
URL: http://svn.boost.org/trac/boost/changeset/44814
Log:
tweak grammar_class test
Text files modified:
trunk/libs/spirit/test/qi/grammar.cpp | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
Modified: trunk/libs/spirit/test/qi/grammar.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/grammar.cpp (original)
+++ trunk/libs/spirit/test/qi/grammar.cpp 2008-04-27 04:44:38 EDT (Sun, 27 Apr 2008)
@@ -118,7 +118,18 @@
BOOST_TEST(n == 123);
}
- { // grammar_class test
+ { // grammar_class test (no skipper)
+
+ grammar_class<num_list3> nlist;
+
+ char const* first = "123,456,789";
+ char const* last = first;
+ while (*last)
+ last++;
+ BOOST_TEST(parse(first, last, nlist) && (first == last));
+ }
+
+ { // grammar_class test (w/skipper)
grammar_class<num_list3> nlist;
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