Set .discard(), .remove() & .pop()

  • + 1 comment

    Problem is improper for a test, since there are 3 "pop" operations that can remove arbitrary elements. As a result, subsequent "remove" might raise exception. Even if exception is nor raised, if pop() acts on an element that is later discarded, one might have different number of elements in set, so the result is not likely consistent