Changeset 1215:81b4731f8a6b in lemon-0.x for src/test
- Timestamp:
- 03/16/05 08:50:20 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1635
- Location:
- src/test
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/test/heap_test.cc
r1206 r1215 3 3 #include <iostream> 4 4 #include <fstream> 5 #include <string> 5 6 #include <vector> 6 7 … … 91 92 92 93 /// \todo create own test graph 93 std::ifstream input("dijkstra_test.lemon"); 94 95 std::string f_name; 96 if( getenv("srcdir") ) 97 f_name = std::string(getenv("srcdir")); 98 else f_name = "."; 99 f_name += "/dijkstra_test.lgf"; 100 101 std::ifstream input(f_name.c_str()); 102 check(input, "Input file '" << f_name << "' not found."); 94 103 readGraph(input, graph, length, start); 95 104 -
src/test/preflow_test.cc
r1164 r1215 87 87 88 88 std::string f_name; 89 if( getenv("srcdir") ) { 90 f_name = std::string(getenv("srcdir")) + "/preflow_graph.dim"; 91 } 92 else { 93 f_name = "preflow_graph.dim"; 94 } 89 if( getenv("srcdir") ) 90 f_name = std::string(getenv("srcdir")); 91 else f_name = "."; 92 f_name += "/preflow_graph.dim"; 95 93 96 94 std::ifstream file(f_name.c_str());
Note: See TracChangeset
for help on using the changeset viewer.