Example #1
0
 def test_insertion_sort_reverse(self):
     array = range(100)
     array.reverse()
     sorting.insertion(array)
     self.assertEquals(array, range(100))
Example #2
0
 def test_insertion_sort_shuffle(self):
     array = range(100)
     shuffle(array)
     sorting.insertion(array)
     self.assertEquals(array, range(100))