def test__quick_sorted_memory(str1): str1_copy = copy.deepcopy(str1) str1 = list(str1) quick_sorted(str1) assert str1_copy == str1
def test__quick_sorted_cmp1(str1): assert quick_sorted(list(str1), cmp_reverse) == list(reversed(sorted(str1)))
def test__quick_sorted_cmp2(str1): assert quick_sorted(list(str1), cmp_reverse) == list( sorted(str1, key=cmp_to_key(cmp_reverse)))
def test__quick_sorted(str1): assert quick_sorted(list(str1)) == sorted(str1)