diff -r 1fac515a59c1 -r 3b544a9c92db test/min_mean_cycle_test.cc --- a/test/min_mean_cycle_test.cc Mon Aug 10 14:50:57 2009 +0200 +++ b/test/min_mean_cycle_test.cc Tue Aug 11 20:55:40 2009 +0200 @@ -21,11 +21,13 @@ #include #include -#include #include #include #include +#include +#include + #include "test_tools.h" using namespace lemon; @@ -141,16 +143,23 @@ // Check the interface { typedef concepts::Digraph GR; - typedef Howard > IntMmcAlg; - typedef Howard > FloatMmcAlg; + + // Karp + checkConcept< MmcClassConcept, + Karp > >(); + checkConcept< MmcClassConcept, + Karp > >(); - checkConcept, IntMmcAlg>(); - checkConcept, FloatMmcAlg>(); - - if (IsSameType::result == 0) - check(false, "Wrong LargeValue type"); - if (IsSameType::result == 0) - check(false, "Wrong LargeValue type"); + // Howard + checkConcept< MmcClassConcept, + Howard > >(); + checkConcept< MmcClassConcept, + Howard > >(); + + if (IsSameType >::LargeValue, + long_int>::result == 0) check(false, "Wrong LargeValue type"); + if (IsSameType >::LargeValue, + double>::result == 0) check(false, "Wrong LargeValue type"); } // Run various tests @@ -174,6 +183,13 @@ arcMap("c4", c4). run(); + // Karp + checkMmcAlg >(gr, l1, c1, 6, 3); + checkMmcAlg >(gr, l2, c2, 5, 2); + checkMmcAlg >(gr, l3, c3, 0, 1); + checkMmcAlg >(gr, l4, c4, -1, 1); + + // Howard checkMmcAlg >(gr, l1, c1, 6, 3); checkMmcAlg >(gr, l2, c2, 5, 2); checkMmcAlg >(gr, l3, c3, 0, 1);