|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75735 - trunk/libs/spirit/test/qi
From: joel_at_[hidden]
Date: 2011-11-29 18:47:22
Author: djowel
Date: 2011-11-29 18:47:21 EST (Tue, 29 Nov 2011)
New Revision: 75735
URL: http://svn.boost.org/trac/boost/changeset/75735
Log:
added longest match test
Text files modified:
trunk/libs/spirit/test/qi/symbols1.cpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Modified: trunk/libs/spirit/test/qi/symbols1.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/symbols1.cpp (original)
+++ trunk/libs/spirit/test/qi/symbols1.cpp 2011-11-29 18:47:21 EST (Tue, 29 Nov 2011)
@@ -51,11 +51,12 @@
("Tutit")
("Kim")
("Joey")
+ ("Joeyboy")
;
boost::mpl::true_ f = boost::mpl::bool_<boost::spirit::traits::is_parser<symbols<char, int> >::value>();
- // silence stupid compiler warnings
+ // silence stupid compiler warnings
// i.e. MSVC warning C4189: 'f' : local variable is initialized but not referenced
BOOST_TEST((f.value));
@@ -65,6 +66,7 @@
BOOST_TEST((test("Tutit", sym)));
BOOST_TEST((test("Kim", sym)));
BOOST_TEST((test("Joey", sym)));
+ BOOST_TEST((test("Joeyboy", sym)));
BOOST_TEST((!test("XXX", sym)));
// test copy
@@ -159,12 +161,12 @@
BOOST_TEST((test_attr("Joey", sym, i)));
BOOST_TEST(i == 6);
BOOST_TEST((!test_attr("XXX", sym, i)));
-
+
// double add:
-
+
sym.add("Joel", 265);
BOOST_TEST((test_attr("Joel", sym, i)));
- BOOST_TEST(i == 1);
+ BOOST_TEST(i == 1);
}
{ // 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