Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65540 - sandbox/chrono/libs/ratio/test/ratio_arithmetic
From: vicente.botet_at_[hidden]
Date: 2010-09-23 01:41:33


Author: viboes
Date: 2010-09-23 01:41:32 EDT (Thu, 23 Sep 2010)
New Revision: 65540
URL: http://svn.boost.org/trac/boost/changeset/65540

Log:
Ratio add test
Text files modified:
   sandbox/chrono/libs/ratio/test/ratio_arithmetic/ratio_multiply.pass.cpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: sandbox/chrono/libs/ratio/test/ratio_arithmetic/ratio_multiply.pass.cpp
==============================================================================
--- sandbox/chrono/libs/ratio/test/ratio_arithmetic/ratio_multiply.pass.cpp (original)
+++ sandbox/chrono/libs/ratio/test/ratio_arithmetic/ratio_multiply.pass.cpp 2010-09-23 01:41:32 EDT (Thu, 23 Sep 2010)
@@ -63,4 +63,10 @@
     typedef boost::ratio_multiply<R1, R2>::type R;
     BOOST_RATIO_STATIC_ASSERT(R::num == 15519594064236LL && R::den == 5177331081415LL, NOTHING, ());
     }
+ {
+ typedef boost::ratio<1, 0x7FFFFFFFFFFFFFFFLL> R1;
+ typedef boost::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R2;
+ typedef boost::ratio_multiply<R1, R2>::type R;
+ BOOST_RATIO_STATIC_ASSERT(R::num == 1 && R::den == 1, NOTHING, (R));
+ }
 }


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