Update the unordered tests. Several changes including extra erase tests. The newer version of the containers have a hairy erase implementation, so need to test all the special cases. Also, a few extra tests here and there, avoid a couple of warnings and remove some old TODOs.

[SVN r3341]
This commit is contained in:
Daniel James
2006-10-31 22:19:26 +00:00
parent 136e2fe3ba
commit ec310f7b80
20 changed files with 316 additions and 134 deletions

View File

@@ -43,7 +43,6 @@ void simple_test(X const& a)
}
{
// TODO: Also test with a random container...
X b(a);
X c;
BOOST_TEST(equivalent(b));
@@ -59,8 +58,6 @@ void simple_test(X const& a)
{
X u;
X& r = u;
// TODO: I can't actually see a requirement for that assignment
// returns a reference to itself (just that it returns a reference).
BOOST_TEST(&(r = r) == &r);
BOOST_TEST(r.empty());
BOOST_TEST(&(r = a) == &r);
@@ -74,8 +71,6 @@ void simple_test(X const& a)
(typename X::size_type) std::distance(a.begin(), a.end()));
}
// TODO: Test max_size against allocator?
{
BOOST_TEST(a.empty() == (a.size() == 0));
}
@@ -85,8 +80,6 @@ void simple_test(X const& a)
X u;
BOOST_TEST(u.begin() == u.end());
}
// TODO: Test construction with allocator?
}
int main()