COIN-OR::LEMON - Graph Library

Changeset 11:cf6519daa7fa in lemon-benchmark for tests/circulation.cc


Ignore:
Timestamp:
12/11/11 11:19:39 (12 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Refactoring and test instance in test logs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/circulation.cc

    r10 r11  
    55#include <lemon/dimacs.h>
    66#include <lemon/error.h>
     7#include <istream>
    78
    8 const char test_name[] = "circulation";
     9std::string test_name = "circulation";
    910
    1011using namespace lemon;
    1112
    12 int testMain(int argc, char **argv)
     13int testMain(std::istream &input)
    1314{
    14   if(argc!=2) exit(1);
    15 
    1615  typedef int Value;
    1716 
     
    2524  Timer ti;
    2625  try {
    27     std::ifstream input;
    28     input.open(argv[1]);
    2926    readDimacsMin(input, g, lo_cap, up_cap, cost, sup);
    3027  } catch (FormatError& error) {
     
    3229    return 1;
    3330  }
    34   logTime("file-read",ti);
     31  logTime("fread",ti);
    3532
    3633  Timer tf;
Note: See TracChangeset for help on using the changeset viewer.