src/test/minlengthpaths_test.cc
changeset 681 06a3cba90f94
parent 610 4ce8c695e748
child 790 2b9a43c0d64e
equal deleted inserted replaced
1:10c513db587a 2:0cc4d7526171
     1 #include <iostream>
     1 #include <iostream>
     2 #include <hugo/list_graph.h>
     2 #include <hugo/list_graph.h>
     3 #include <hugo/minlengthpaths.h>
     3 #include <hugo/minlengthpaths.h>
     4 #include <path.h>
     4 #include <path.h>
       
     5 #include "test_tools.h"
     5 
     6 
     6 using namespace std;
     7 using namespace std;
     7 using namespace hugo;
     8 using namespace hugo;
     8 
     9 
     9 
    10 
    10 
    11 
    11 bool passed = true;
    12 bool passed = true;
    12 
       
    13 void check(bool rc, char *msg="") {
       
    14   passed = passed && rc;
       
    15   if(!rc) {
       
    16     std::cerr << "Test failed! ("<< msg << ")" << std::endl; \
       
    17  
       
    18 
       
    19   }
       
    20 }
       
    21 
       
    22 
    13 
    23 
    14 
    24 int main()
    15 int main()
    25 {
    16 {
    26 
    17