def test_delitem():
    random.seed(0)

    slt = SortedList(range(100), load=17)
    while len(slt) > 0:
        pos = random.randrange(len(slt))
        del slt[pos]
        slt._check()

    slt = SortedList(range(100), load=17)
    del slt[:]
    assert len(slt) == 0
    slt._check()
dataset/ETHPy150Open grantjenks/sorted_containers/tests/test_coverage_sortedlist.py/test_delitem/original