Update test_iterator_random test for vector-like containers

This commit is contained in:
Ion Gaztañaga
2024-04-15 11:57:44 +02:00
parent c9e544df83
commit 56cc38f761
8 changed files with 45 additions and 390 deletions

View File

@@ -331,10 +331,14 @@ int main()
////////////////////////////////////
{
typedef boost::container::vector<int> cont_int;
cont_int a; a.push_back(0); a.push_back(1); a.push_back(2);
boost::intrusive::test::test_iterator_random< cont_int >(a);
if(boost::report_errors() != 0) {
return 1;
for (std::size_t i = 10; i <= 10000; i *= 10) {
cont_int a;
for (int j = 0; j < (int)i; ++j)
a.push_back((int)j);
boost::intrusive::test::test_iterator_random< cont_int >(a);
if (boost::report_errors() != 0) {
return 1;
}
}
}