예제 #1
0
def test_1():
    a = [45, 67, -2, 33, 0, -44, 134, -67]
    e = sorted(a)
    assert recursive_sort(a) == e
예제 #2
0
def test_3():
    a = [i for i in range(-45,5, 2)] + [i for i in range(100,-34, -15)] + [i for i in range(1000,340, -47)]
    e = sorted(a)
    assert recursive_sort(a) == e
예제 #3
0
def test_2():
    a = [i for i in range(-10,-1, 1)] + [i for i in range(10,-1, -1)]
    e = sorted(a)
    assert recursive_sort(a) == e
예제 #4
0
def test_empty():
    a = []
    e = sorted(a)
    assert recursive_sort(a) == e
예제 #5
0
def test_reverse_order():
    a = [i for i in range(10,-1, -1)]
    e = sorted(a)
    assert recursive_sort(a) == e
예제 #6
0
def test_in_order():
    a = [i for i in range(10)]
    e = sorted(a)
    assert recursive_sort(a) == e