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
+21
View File
@@ -22,6 +22,7 @@
#include "propagate_allocator_test.hpp"
#include "container_common_tests.hpp"
#include "emplace_test.hpp"
#include "../../intrusive/test/iterator_test.hpp"
#include <vector>
#include <map>
@@ -498,6 +499,26 @@ int main()
if(!boost::container::test::test_propagate_allocator<boost_container_flat_multimap>())
return 1;
////////////////////////////////////
// Iterator testing
////////////////////////////////////
{
typedef boost::container::flat_map<int, int> cont_int;
cont_int a; a.insert(cont_int::value_type(0, 9)); a.insert(cont_int::value_type(1, 9)); a.insert(cont_int::value_type(2, 9));
boost::intrusive::test::test_iterator_random< cont_int >(a);
if(boost::report_errors() != 0) {
return 1;
}
}
{
typedef boost::container::flat_multimap<int, int> cont_int;
cont_int a; a.insert(cont_int::value_type(0, 9)); a.insert(cont_int::value_type(1, 9)); a.insert(cont_int::value_type(2, 9));
boost::intrusive::test::test_iterator_random< cont_int >(a);
if(boost::report_errors() != 0) {
return 1;
}
}
return 0;
}