forked from boostorg/container
Refactor initializer_list tests to avoid code duplication and add some missing initializer_list overload tests
This commit is contained in:
1 parent
90b3af4229
commit
7239c8e262
9 files changed
+132
-105
No files matched your search
@@ -389,12 +389,17 @@ template<typename VectorContainerType>
|
||||
bool test_vector_methods_with_initializer_list_as_argument_for()
|
||||
{
|
||||
#if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
|
||||
typedef typename VectorContainerType::allocator_type allocator_type;
|
||||
{
|
||||
const VectorContainerType testedVector = {1, 2, 3};
|
||||
const std::vector<int> expectedVector = {1, 2, 3};
|
||||
if(!test::CheckEqualContainers(testedVector, expectedVector)) return false;
|
||||
}
|
||||
|
||||
{
|
||||
const VectorContainerType testedVector( { 1, 2, 3 }, allocator_type() );
|
||||
const std::vector<int> expectedVector = {1, 2, 3};
|
||||
if(!test::CheckEqualContainers(testedVector, expectedVector)) return false;
|
||||
}
|
||||
{
|
||||
VectorContainerType testedVector = {1, 2, 3};
|
||||
testedVector = {11, 12, 13};
|
||||
|
||||
Reference in new issue
Block a user