def test_counting_sort(self):
     # counting sort is an integer based sort
     self.result = counting_sort.sort(self.array)
     self.assertEqual(self.result, self.sorted_array)
Beispiel #2
0
 def sort(arr):
     return counting_sort.sort(arr)