def test_insertion_sort_reverse(self): array = range(100) array.reverse() sorting.insertion(array) self.assertEquals(array, range(100))
def test_insertion_sort_shuffle(self): array = range(100) shuffle(array) sorting.insertion(array) self.assertEquals(array, range(100))