From 1ac7339ff4a54e2be848f81ba18aeec8368a0a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 31 Aug 2020 22:21:02 +0200 Subject: [PATCH] Add test to erase the last element --- test/vector_test.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/vector_test.hpp b/test/vector_test.hpp index 016da1a..e290c6a 100644 --- a/test/vector_test.hpp +++ b/test/vector_test.hpp @@ -338,6 +338,10 @@ int vector_test() stdvector.erase(stdvector.begin()); 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 IntType aux_vect[50];