def test_sort_against_is_stable(): lista = [3, 0, 1] listb = [1, 1, 1] res = sort_against(lista, listb) assert res == lista
def test_sort_against(): lista = [5, 6, 7] listb = [2, 3, 1] res = sort_against(lista, listb) assert res == [7, 5, 6]