Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57869 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-11-23 12:23:44


Author: hkaiser
Date: 2009-11-23 12:23:43 EST (Mon, 23 Nov 2009)
New Revision: 57869
URL: http://svn.boost.org/trac/boost/changeset/57869

Log:
Spirit: fixed test case
Text files modified:
   trunk/libs/spirit/test/qi/optional.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/spirit/test/qi/optional.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/optional.cpp (original)
+++ trunk/libs/spirit/test/qi/optional.cpp 2009-11-23 12:23:43 EST (Mon, 23 Nov 2009)
@@ -76,7 +76,8 @@
 
     { // test action
         boost::optional<int> n = 0;
- BOOST_TEST((test("1234", (-int_)[test_attribute_type()])));
+ BOOST_TEST((test_attr("1234", (-int_)[test_attribute_type()], n)));
+ BOOST_TEST((n.get() == 1234));
     }
 
     {


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