mirror of
https://github.com/boostorg/container.git
synced 2025-08-05 23:34:33 +02:00
Added insertion test to vector-like containers
[SVN r83469]
This commit is contained in:
@@ -665,8 +665,8 @@ use [*Boost.Container]? There are several reasons for that:
|
|||||||
* Support for `BOOST_NO_EXCEPTIONS` [@https://svn.boost.org/trac/boost/ticket/7227 #7227].
|
* Support for `BOOST_NO_EXCEPTIONS` [@https://svn.boost.org/trac/boost/ticket/7227 #7227].
|
||||||
* Fixed bugs [@https://svn.boost.org/trac/boost/ticket/7921 #7921],
|
* Fixed bugs [@https://svn.boost.org/trac/boost/ticket/7921 #7921],
|
||||||
[@https://svn.boost.org/trac/boost/ticket/7969 #7969],
|
[@https://svn.boost.org/trac/boost/ticket/7969 #7969],
|
||||||
[@https://svn.boost.org/trac/boost/ticket/8118 #8118].
|
[@https://svn.boost.org/trac/boost/ticket/8118 #8118],
|
||||||
|
[@https://svn.boost.org/trac/boost/ticket/8294 #8294].
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
[section:release_notes_boost_1_53_00 Boost 1.53 Release]
|
[section:release_notes_boost_1_53_00 Boost 1.53 Release]
|
||||||
|
@@ -300,6 +300,9 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\..\test\heap_allocator_v1.hpp">
|
RelativePath="..\..\test\heap_allocator_v1.hpp">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\test\insert_test.hpp">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\test\Jamfile.v2">
|
RelativePath="..\..\test\Jamfile.v2">
|
||||||
</File>
|
</File>
|
||||||
|
@@ -31,6 +31,7 @@
|
|||||||
#include <boost/move/utility.hpp>
|
#include <boost/move/utility.hpp>
|
||||||
#include <boost/move/iterator.hpp>
|
#include <boost/move/iterator.hpp>
|
||||||
#include <boost/detail/no_exceptions_support.hpp>
|
#include <boost/detail/no_exceptions_support.hpp>
|
||||||
|
#include "insert_test.hpp"
|
||||||
|
|
||||||
namespace boost{
|
namespace boost{
|
||||||
namespace container {
|
namespace container {
|
||||||
@@ -102,6 +103,10 @@ int vector_test()
|
|||||||
typedef typename MyBoostVector::value_type IntType;
|
typedef typename MyBoostVector::value_type IntType;
|
||||||
const int max = 100;
|
const int max = 100;
|
||||||
|
|
||||||
|
if(!test_range_insertion<MyBoostVector>()){
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_TRY{
|
BOOST_TRY{
|
||||||
MyBoostVector *boostvector = new MyBoostVector;
|
MyBoostVector *boostvector = new MyBoostVector;
|
||||||
@@ -317,6 +322,7 @@ int vector_test()
|
|||||||
}
|
}
|
||||||
BOOST_CATCH_END
|
BOOST_CATCH_END
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << std::endl << "Test OK!" << std::endl;
|
std::cout << std::endl << "Test OK!" << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -328,4 +334,3 @@ int vector_test()
|
|||||||
#include <boost/container/detail/config_end.hpp>
|
#include <boost/container/detail/config_end.hpp>
|
||||||
|
|
||||||
#endif //BOOST_CONTAINER_TEST_VECTOR_TEST_HEADER
|
#endif //BOOST_CONTAINER_TEST_VECTOR_TEST_HEADER
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user