Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2007-09-14 17:17:07


Author: dgregor
Date: 2007-09-14 17:17:06 EDT (Fri, 14 Sep 2007)
New Revision: 39286
URL: http://svn.boost.org/trac/boost/changeset/39286

Log:
Fix the cycle ratio tests for real
Text files modified:
   trunk/libs/graph/test/Jamfile.v2 | 2 +-
   trunk/libs/graph/test/cycle_ratio_tests.cpp | 6 +++---
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/graph/test/Jamfile.v2
==============================================================================
--- trunk/libs/graph/test/Jamfile.v2 (original)
+++ trunk/libs/graph/test/Jamfile.v2 2007-09-14 17:17:06 EDT (Fri, 14 Sep 2007)
@@ -105,7 +105,7 @@
 
     [ run kolmogorov_max_flow_test.cpp ]
 
- [ run cycle_ratio_tests.cpp ../build//boost_graph : . ]
+ [ run cycle_ratio_tests.cpp ../build//boost_graph : cycle_ratio_s382.90.dot ]
 
     [ run basic_planarity_test.cpp ]
 

Modified: trunk/libs/graph/test/cycle_ratio_tests.cpp
==============================================================================
--- trunk/libs/graph/test/cycle_ratio_tests.cpp (original)
+++ trunk/libs/graph/test/cycle_ratio_tests.cpp 2007-09-14 17:17:06 EDT (Fri, 14 Sep 2007)
@@ -180,8 +180,8 @@
 
 int test_main(int argc, char* argv[])
 {
- std::string input_directory = ".";
- if (argc > 1) input_directory = argv[1];
+ std::string input_file = "cycle_ratio_s382.90.dot";
+ if (argc > 1) input_file = argv[1];
 
         const double epsilon = 0.00000001;
         double min_cr, max_cr; ///Minimum and maximum cycle ratio
@@ -239,7 +239,7 @@
         std::cout << '\n';
         tg.clear();
 
- /**/read_data((input_directory + "/cycle_ratio_s382.90.dot").c_str(), tg);
+ /**/read_data(input_file.c_str(), tg);
         min_cr = minimum_cycle_ratio(tg, vim, ew1m, ew2m, get(edge_index,tg), &cc, 2);
         std::cout << "Minimum cycle ratio is " << min_cr << "\n";
         BOOST_CHECK(std::abs(min_cr - 0.33333333333) < epsilon );


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