|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52108 - trunk/libs/graph/test
From: jewillco_at_[hidden]
Date: 2009-04-01 12:01:44
Author: jewillco
Date: 2009-04-01 12:01:43 EDT (Wed, 01 Apr 2009)
New Revision: 52108
URL: http://svn.boost.org/trac/boost/changeset/52108
Log:
Renamed some functions to work better on some compilers
Text files modified:
trunk/libs/graph/test/csr_graph_test.cpp | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
Modified: trunk/libs/graph/test/csr_graph_test.cpp
==============================================================================
--- trunk/libs/graph/test/csr_graph_test.cpp (original)
+++ trunk/libs/graph/test/csr_graph_test.cpp 2009-04-01 12:01:43 EDT (Wed, 01 Apr 2009)
@@ -169,7 +169,7 @@
}
template<typename OrigGraph>
-void test(const OrigGraph& g)
+void graph_test(const OrigGraph& g)
{
// Check copying of a graph
CSRGraphT g2(g);
@@ -308,12 +308,12 @@
get(boost::edge_index, g3))));
}
-void test(int nnodes, double density, int seed)
+void graph_test(int nnodes, double density, int seed)
{
boost::minstd_rand gen(seed);
std::cout << "Testing " << nnodes << " density " << density << std::endl;
GraphT g(ERGen(gen, nnodes, density), ERGen(), nnodes);
- test(g);
+ graph_test(g);
}
void test_graph_properties()
@@ -377,13 +377,13 @@
{
std::cout << "Testing empty graph" << std::endl;
CSRGraphT g;
- test(g);
+ graph_test(g);
}
- // test(1000, 0.05, seed);
- // test(1000, 0.0, seed);
- // test(1000, 0.1, seed);
- test(1000, 0.001, seed);
- test(1000, 0.0005, seed);
+ // graph_test(1000, 0.05, seed);
+ // graph_test(1000, 0.0, seed);
+ // graph_test(1000, 0.1, seed);
+ graph_test(1000, 0.001, seed);
+ graph_test(1000, 0.0005, seed);
{
std::cout << "Testing partially constructed CSR graph" << std::endl;
CSRGraphT g;
@@ -398,7 +398,7 @@
for (boost::tie(ei, ei_end) = edges(g); ei != ei_end; ++ei) {
BOOST_CHECK(edge_from_index(get(boost::edge_index, g, *ei), g) == *ei);
}
- test(g);
+ graph_test(g);
}
test_graph_properties();
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