Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53243 - sandbox/numeric_adaptor/libs/numeric_adaptor/test
From: barend.gehrels_at_[hidden]
Date: 2009-05-25 03:54:27


Author: barendgehrels
Date: 2009-05-25 03:54:27 EDT (Mon, 25 May 2009)
New Revision: 53243
URL: http://svn.boost.org/trac/boost/changeset/53243

Log:
added string assignment and construction
Text files modified:
   sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_cast.cpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_cast.cpp
==============================================================================
--- sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_cast.cpp (original)
+++ sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_cast.cpp 2009-05-25 03:54:27 EDT (Mon, 25 May 2009)
@@ -26,6 +26,12 @@
     BOOST_CHECK_EQUAL(float(n), 1234.5);
     BOOST_CHECK_EQUAL(double(n), 1234.5);
     BOOST_CHECK_EQUAL(n.template get<std::string>(), "1234.5");
+
+ num n2 = "1234.5";
+ BOOST_CHECK_EQUAL(double(n2), 1234.5);
+
+ num n3("1234.5");
+ BOOST_CHECK_EQUAL(double(n3), 1234.5);
 }
 
 int test_main(int, char*[])


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