In the add function, the next 2 buckets are deleted so when there are < 3 buckets, add does nothing since the bucket that was added to is immediately deleted.
The initialize function should probably check for this condition and raise the appropriate error.
In the
add
function, the next 2 buckets are deleted so when there are < 3 buckets,add
does nothing since the bucket that was added to is immediately deleted.The initialize function should probably check for this condition and raise the appropriate error.