Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62046 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-05-16 17:22:28


Author: jewillco
Date: 2010-05-16 17:22:27 EDT (Sun, 16 May 2010)
New Revision: 62046
URL: http://svn.boost.org/trac/boost/changeset/62046

Log:
Removed use of fraction_tolerance to match new Boost.Test interfaces
Text files modified:
   trunk/boost/graph/rmat_graph_generator.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/graph/rmat_graph_generator.hpp
==============================================================================
--- trunk/boost/graph/rmat_graph_generator.hpp (original)
+++ trunk/boost/graph/rmat_graph_generator.hpp 2010-05-16 17:22:27 EDT (Sun, 16 May 2010)
@@ -155,7 +155,7 @@
     {
       this->gen.reset(new uniform_01<RandomGenerator>(gen));
 
- assert(boost::test_tools::check_is_close(a + b + c + d, 1., boost::test_tools::fraction_tolerance(1.e-5)));
+ assert(boost::test_tools::check_is_close(a + b + c + d, 1., 1.e-5));
 
       if (permute_vertices)
         generate_permutation_vector(gen, vertexPermutation, n);
@@ -265,7 +265,7 @@
         values(sort_pair<vertices_size_type>()), done(false)
 
     {
- assert(boost::test_tools::check_is_close(a + b + c + d, 1., boost::test_tools::fraction_tolerance(1.e-5)));
+ assert(boost::test_tools::check_is_close(a + b + c + d, 1., 1.e-5));
 
       this->gen.reset(new uniform_01<RandomGenerator>(gen));
 
@@ -366,7 +366,7 @@
       : gen(), done(false)
 
     {
- assert(boost::test_tools::check_is_close(a + b + c + d, 1., boost::test_tools::fraction_tolerance(1.e-5)));
+ assert(boost::test_tools::check_is_close(a + b + c + d, 1., 1.e-5));
 
       this->gen.reset(new uniform_01<RandomGenerator>(gen));
 
@@ -479,7 +479,7 @@
         values(sort_pair<vertices_size_type>()), done(false)
 
     {
- assert(boost::test_tools::check_is_close(a + b + c + d, 1., boost::test_tools::fraction_tolerance(1.e-5)));
+ assert(boost::test_tools::check_is_close(a + b + c + d, 1., 1.e-5));
 
       this->gen.reset(new uniform_01<RandomGenerator>(gen));
 


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