示例#1
0
def test_removeMoreThanOneOccurence():
    t = Treap()
    t.insert("A")
    t.insert("A")
    t.remove("A")
    assert t.getOccurenceCount("A") == 1
示例#2
0
def test_testOccurenceCountMany():
    t = Treap()
    t.insert("A")
    t.insert("A")
    t.insert("A")
    assert t.getOccurenceCount("A") == 3