1.1 --- a/test/lp_test.cc Sun Jan 05 22:24:56 2014 +0100
1.2 +++ b/test/lp_test.cc Tue Apr 14 08:39:40 2015 +0200
1.3 @@ -20,7 +20,7 @@
1.4 #include <lemon/lp_skeleton.h>
1.5 #include "test_tools.h"
1.6 #include <lemon/tolerance.h>
1.7 -
1.8 +#include <lemon/concept_check.h>
1.9 #include <lemon/config.h>
1.10
1.11 #ifdef LEMON_HAVE_GLPK
1.12 @@ -47,12 +47,22 @@
1.13 int countCols(LpBase & lp) {
1.14 int count=0;
1.15 for (LpBase::ColIt c(lp); c!=INVALID; ++c) ++count;
1.16 +#ifdef LEMON_CXX11
1.17 + int cnt = 0;
1.18 + for(auto c: lp.cols()) { cnt++; ::lemon::ignore_unused_variable_warning(c); }
1.19 + check(count == cnt, "Wrong STL iterator");
1.20 +#endif
1.21 return count;
1.22 }
1.23
1.24 int countRows(LpBase & lp) {
1.25 int count=0;
1.26 for (LpBase::RowIt r(lp); r!=INVALID; ++r) ++count;
1.27 +#ifdef LEMON_CXX11
1.28 + int cnt = 0;
1.29 + for(auto r: lp.rows()) { cnt++; ::lemon::ignore_unused_variable_warning(r); }
1.30 + check(count == cnt, "Wrong STL iterator");
1.31 +#endif
1.32 return count;
1.33 }
1.34