Skip to content
Snippets Groups Projects
Commit d9fe5839 authored by Markus Blatt's avatar Markus Blatt
Browse files

Do not test assignment if we do not test sorting.

[[Imported from SVN: r4916]]
parent d7c73b78
Branches
Tags
No related merge requests found
......@@ -237,14 +237,17 @@ int testIterator(Container& c, Opt& opt)
std::cerr<<"constant and mutable iterators should be equal!"<<std::endl;
ret=1;
}
return ret + testConstIterator(cbegin, cend, opt) +
testIterator(begin,end,opt);
ret += testConstIterator(cbegin, cend, opt);
if(testSort)
ret += testIterator(begin,end,opt);
return ret;
}
template<class Container, class Opt>
int testIterator(Container& c, Opt& opt)
{
testIterator<Container,Opt,true>(c,opt);
return testIterator<Container,Opt,true>(c,opt);
}
template<class Iter, class Opt>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment