|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54011 - trunk/libs/spirit/test/qi
From: joel_at_[hidden]
Date: 2009-06-17 06:37:32
Author: djowel
Date: 2009-06-17 06:37:32 EDT (Wed, 17 Jun 2009)
New Revision: 54011
URL: http://svn.boost.org/trac/boost/changeset/54011
Log:
added test for double addition
Text files modified:
trunk/libs/spirit/test/qi/symbols.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/libs/spirit/test/qi/symbols.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/symbols.cpp (original)
+++ trunk/libs/spirit/test/qi/symbols.cpp 2009-06-17 06:37:32 EDT (Wed, 17 Jun 2009)
@@ -155,6 +155,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);
}
{ // 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