Add test to erase the last element

This commit is contained in:
Ion Gaztañaga
2020-08-31 22:21:02 +02:00
parent 0b297019ec
commit 1ac7339ff4

View File

@@ -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];