forked from boostorg/container
Add iterator tests
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "movable_int.hpp"
|
||||
#include "propagate_allocator_test.hpp"
|
||||
#include "default_init_test.hpp"
|
||||
#include "../../intrusive/test/iterator_test.hpp"
|
||||
|
||||
#include <boost/container/allocator.hpp>
|
||||
#include <boost/container/node_allocator.hpp>
|
||||
@@ -179,5 +180,17 @@ int main()
|
||||
return 1;
|
||||
}
|
||||
|
||||
////////////////////////////////////
|
||||
// Iterator testing
|
||||
////////////////////////////////////
|
||||
{
|
||||
typedef boost::container::small_vector<int, 0> 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user