def test_extend():
    slt = SortedList(load=17)

    slt.extend(range(100))
    slt._check()

    slt.extend(list(range(100, 200)))
    slt._check()

    for val in range(200, 300):
        del slt._index[:]
        slt._build_index()
        slt.extend([val] * (199 - val))
        slt._check()
dataset/ETHPy150Open grantjenks/sorted_containers/tests/test_coverage_sortedlist.py/test_extend/swapped operands of `-`