mirror of
https://github.com/boostorg/container.git
synced 2026-01-19 04:02:17 +00:00
Update test_iterator_random test for vector-like containers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user