mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 13:34:30 +02:00
Add test to erase the last element
This commit is contained in:
@@ -338,6 +338,10 @@ int vector_test()
|
|||||||
stdvector.erase(stdvector.begin());
|
stdvector.erase(stdvector.begin());
|
||||||
if(!test::CheckEqualContainers(boostvector, stdvector)) return 1;
|
if(!test::CheckEqualContainers(boostvector, stdvector)) return 1;
|
||||||
|
|
||||||
|
boostvector.erase(boostvector.end()-1);
|
||||||
|
stdvector.erase(stdvector.end()-1);
|
||||||
|
if(!test::CheckEqualContainers(boostvector, stdvector)) return 1;
|
||||||
|
|
||||||
{
|
{
|
||||||
//Initialize values
|
//Initialize values
|
||||||
IntType aux_vect[50];
|
IntType aux_vect[50];
|
||||||
|
Reference in New Issue
Block a user