Add iterator tests

This commit is contained in:
Ion Gaztañaga
2015-04-14 15:03:19 +02:00
parent ad54608d78
commit d01cb72b3f
12 changed files with 217 additions and 12 deletions

View File

@@ -24,6 +24,7 @@
#include "propagate_allocator_test.hpp"
#include "vector_test.hpp"
#include "default_init_test.hpp"
#include "../../intrusive/test/iterator_test.hpp"
using namespace boost::container;
@@ -263,6 +264,17 @@ int main()
>()) {
return 1;
}
return 0;
////////////////////////////////////
// Iterator testing
////////////////////////////////////
{
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;
}
}
return 0;
}