Boost logo

Boost-Commit :

From: boost_at_[hidden]
Date: 2008-05-19 14:46:24


Author: matthiasschabel
Date: 2008-05-19 14:46:24 EDT (Mon, 19 May 2008)
New Revision: 45553
URL: http://svn.boost.org/trac/boost/changeset/45553

Log:
namespace SI->si
Text files modified:
   sandbox/units/libs/units/test/test_scaled_unit.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: sandbox/units/libs/units/test/test_scaled_unit.cpp
==============================================================================
--- sandbox/units/libs/units/test/test_scaled_unit.cpp (original)
+++ sandbox/units/libs/units/test/test_scaled_unit.cpp 2008-05-19 14:46:24 EDT (Mon, 19 May 2008)
@@ -31,16 +31,16 @@
 #include <boost/test/unit_test.hpp>
 
 namespace bu = boost::units;
-namespace SI = boost::units::SI;
+namespace si = boost::units::si;
 
 BOOST_AUTO_TEST_CASE(test_floating_point) {
- bu::quantity<SI::time> s1 = 12.5 * SI::seconds;
- bu::quantity<SI::time> s2(SI::nano * s1);
+ bu::quantity<si::time> s1 = 12.5 * si::seconds;
+ bu::quantity<si::time> s2(si::nano * s1);
     BOOST_CHECK_CLOSE_FRACTION(1e-9 * s1.value(), s2.value(), 0.000000001);
 }
 
 BOOST_AUTO_TEST_CASE(test_output) {
     std::stringstream stream;
- stream << SI::nano * 12.5 * SI::seconds;
+ stream << si::nano * 12.5 * si::seconds;
     BOOST_CHECK_EQUAL(stream.str(), "12.5 10^-9 s");
 }


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