Exemplo n.º 1
0
 def test_countingSort_biggerArray(self):
     initial = self.get_integers(200, 200)
     expected = sorted(initial)
     actual = lt.countingSort(initial, 200)
     self.assertEqual(expected, actual)
Exemplo n.º 2
0
 def test_countingSort(self):
     initial = [2, 5, 3, 0, 2, 3, 0, 3]
     expected = sorted(initial)
     actual = lt.countingSort(initial, 5)
     self.assertEqual(expected, actual)