The fix for bug #3 (PR #4) contained some code in addArray that attempted to handle the case where the "highest two" array indexes were already in use. However, the corresponding code in containsArray seems to have been overlooked/forgotten. The containsArray function should also check to see if the highest two array indexes are in use, and if so undertake an exhaustive search for the elements added by addArray.
The fix for bug #3 (PR #4) contained some code in
addArray
that attempted to handle the case where the "highest two" array indexes were already in use. However, the corresponding code incontainsArray
seems to have been overlooked/forgotten. ThecontainsArray
function should also check to see if the highest two array indexes are in use, and if so undertake an exhaustive search for the elements added byaddArray
.