Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2008-05-29 19:33:30


Author: eric_niebler
Date: 2008-05-29 19:33:30 EDT (Thu, 29 May 2008)
New Revision: 45930
URL: http://svn.boost.org/trac/boost/changeset/45930

Log:
uncomment tests that now pass
Text files modified:
   branches/proto/v4/libs/phoenix/test/core/primitives_tests.cpp | 3 +--
   branches/proto/v4/libs/phoenix/test/operator/self_tests.cpp | 7 +++----
   2 files changed, 4 insertions(+), 6 deletions(-)

Modified: branches/proto/v4/libs/phoenix/test/core/primitives_tests.cpp
==============================================================================
--- branches/proto/v4/libs/phoenix/test/core/primitives_tests.cpp (original)
+++ branches/proto/v4/libs/phoenix/test/core/primitives_tests.cpp 2008-05-29 19:33:30 EDT (Thu, 29 May 2008)
@@ -37,8 +37,7 @@
     cout << val("Hello,")() << val(' ')() << val("World")() << endl;
     BOOST_TEST(val(3)() == 3);
     BOOST_TEST(val("Hello, world")() == std::string("Hello, world"));
- // WTF?
- //BOOST_TEST(val(_1)(i1) == i1);
+ BOOST_TEST(val(_1)(i1) == i1);
 
     // should not compile:
 #ifdef PHOENIX_SHOULD_NOT_COMPILE_TEST

Modified: branches/proto/v4/libs/phoenix/test/operator/self_tests.cpp
==============================================================================
--- branches/proto/v4/libs/phoenix/test/operator/self_tests.cpp (original)
+++ branches/proto/v4/libs/phoenix/test/operator/self_tests.cpp 2008-05-29 19:33:30 EDT (Thu, 29 May 2008)
@@ -46,10 +46,9 @@
 
         BOOST_TEST((arg1[3])(v) == "d");
 
- // TODO fix me ... how?
- //map<string, int> m;
- //(arg1["Kimpo"] = arg2)(m, x);
- //BOOST_TEST(m["Kimpo"] == x);
+ map<string, int> m;
+ (arg1["Kimpo"] = arg2)(m, x);
+ BOOST_TEST(m["Kimpo"] == x);
     }
 
     return boost::report_errors();


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