def test_countingSort_biggerArray(self): initial = self.get_integers(200, 200) expected = sorted(initial) actual = lt.countingSort(initial, 200) self.assertEqual(expected, actual)
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)