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