diff --git a/src/t/base/map.cpp b/src/t/base/map.cpp index 3960d0a4..1d989ba4 100644 --- a/src/t/base/map.cpp +++ b/src/t/base/map.cpp @@ -57,6 +57,23 @@ lolunit_declare_fixture(MapTest) lolunit_assert(m.has_key(2)); } + lolunit_declare_test(MapRemove) + { + map m; + array a; + + for (int i = 0; i < 20; i++) + { + a << i; + m[i] = -1; + } + for (int i = 0; i < a.Count(); i++) + m[i] = i; + a.Shuffle(); + for (int i = 0; i < a.Count(); i++) + m.remove(a[i]); + } + lolunit_declare_test(StringMap) { map m;