From b7a2b4bdbd82f2f6a3c5d7124213497aa730517a Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Tue, 28 Sep 2021 12:59:14 +0200 Subject: [PATCH] Fix issue in tests for Map --- test/tests/containers/TestMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/containers/TestMap.h b/test/tests/containers/TestMap.h index 9ede266a..42cae26a 100644 --- a/test/tests/containers/TestMap.h +++ b/test/tests/containers/TestMap.h @@ -221,7 +221,7 @@ class TestMap : public Test { map3.add(Pair(3, 30)); rp3d_test(map3.size() == 3); it = map3.begin(); - map3.remove(it++); + it = map3.remove(it); rp3d_test(!map3.containsKey(1)); rp3d_test(map3.size() == 2); rp3d_test(it->second == 20);