Ejemplo n.º 1
0
    def test_heapsort(self):
        for j in range(NUM_TESTS):
            l = rand_list(max_list=MAX_LIST)

            # no return!
            heapsort(l)
            assert_sorted(self, l)
Ejemplo n.º 2
0
    def test_quicksort(self):
        for j in range(NUM_TESTS):
            l = rand_list(max_list=MAX_LIST)

            # no return!
            quicksort(l, prnt=False)
            assert_sorted(self, l)
Ejemplo n.º 3
0
    def test_quicksort(self):
        for j in range(NUM_TESTS):
            l = rand_list(max_list=MAX_LIST)

            # no return!
            quicksort(l, prnt=False)
            assert_sorted(self, l)
Ejemplo n.º 4
0
 def test_bubble(self):
     for j in range(NUM_TESTS):
         l = rand_list(max_list=MAX_LIST)
         l2 = bubble_sort(l)
         assert_sorted(self, l2)
Ejemplo n.º 5
0
 def test_bubble(self):
     for j in range(NUM_TESTS):
         l = rand_list(max_list=MAX_LIST)
         l2 = bubble_sort(l)
         assert_sorted(self, l2)