forked from boostorg/container
Add iterator tests
This commit is contained in:
+13
-1
@@ -33,6 +33,7 @@
|
||||
#include "vector_test.hpp"
|
||||
#include "default_init_test.hpp"
|
||||
#include <boost/core/no_exceptions_support.hpp>
|
||||
#include "../../intrusive/test/iterator_test.hpp"
|
||||
|
||||
using namespace boost::container;
|
||||
|
||||
@@ -426,7 +427,18 @@ int main ()
|
||||
< boost::container::deque<int> >()) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
////////////////////////////////////
|
||||
// Iterator testing
|
||||
////////////////////////////////////
|
||||
{
|
||||
typedef boost::container::deque<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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user