def test_n_1000(): for i in range(100): lst = generate_random_list(1000) assert D.sort(lst) == sorted(lst)
def test_broken_n_2(): for i in range(100): lst = generate_random_list(2) assert D.sort(lst, broken=True) != sorted(lst)
def test_n_10(): lst = generate_random_list(10) assert D.sort(lst) == sorted(lst)