def test_removeMoreThanOneOccurence(): t = Treap() t.insert("A") t.insert("A") t.remove("A") assert t.getOccurenceCount("A") == 1
def test_testOccurenceCountMany(): t = Treap() t.insert("A") t.insert("A") t.insert("A") assert t.getOccurenceCount("A") == 3