Closed MaddieM4 closed 10 years ago
Internally, SliceContainers are implemented as a map. When we delete an element N, we need to decrement the indexes of all elements > N. Currently we iterate over the map in an undefined order, which can result in clobbering.
The new test function TestSliceContainer_RemoveChild_Many should be very self-explanatory in how and why it works.
The test function TestSliceContainer_RemoveChild sometimes fails as follows:
It doesn't do this consistently. In fact it's pretty infrequent. But there's clearly something sketchy going on in there.