def test_heapsort_bigExample(self): arr = self.get_values(400) actual = dac.heapsort(arr) expected = sorted(arr) self.assertEqual(expected, actual)
def test_heapsort_SimpleExample(self): arr = [3, 5, 2, 9] actual = dac.heapsort(arr) expected = [2, 3, 5, 9] self.assertEqual(expected, actual)