|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86587 - trunk/libs/chrono/test/duration
From: vicente.botet_at_[hidden]
Date: 2013-11-08 15:23:22
Author: viboes
Date: 2013-11-08 15:23:22 EST (Fri, 08 Nov 2013)
New Revision: 86587
URL: http://svn.boost.org/trac/boost/changeset/86587
Log:
Chrono: use * instead of / when testing floats.
Text files modified:
trunk/libs/chrono/test/duration/arithmetic_pass.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/libs/chrono/test/duration/arithmetic_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/duration/arithmetic_pass.cpp Fri Nov 8 12:51:39 2013 (r86586)
+++ trunk/libs/chrono/test/duration/arithmetic_pass.cpp 2013-11-08 15:23:22 EST (Fri, 08 Nov 2013) (r86587)
@@ -268,12 +268,14 @@
{
boost::chrono::duration<int, boost::ratio<2, 3> > s1(30);
boost::chrono::duration<double, boost::ratio<3, 5> > s2(5);
- BOOST_TEST(s1 / s2 == 20. / 3);
+ //BOOST_TEST(s1 / s2 == 20. / 3);
+ BOOST_TEST(3 * s1 == 20 * s2);
}
{
BOOST_CONSTEXPR boost::chrono::duration<int, boost::ratio<2, 3> > s1(30);
BOOST_CONSTEXPR boost::chrono::duration<double, boost::ratio<3, 5> > s2(5);
- BOOST_CONSTEXPR_ASSERT(s1 / s2 == 20. / 3);
+ //BOOST_CONSTEXPR_ASSERT(s1 / s2 == 20. / 3);
+ BOOST_TEST(3 * s1 == 20 * s2);
}
// DIVIDE rep
{
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