示例#1
0
def dHeapSort(x):
    
    heapSort = HeapSort(x)
    x = heapSort.sort()
示例#2
0
 def testHeapSort(self):
     x = [-20,-45,995,912,126,1246,624]
     heapSort = HeapSort(x)
     x = heapSort.sort()
     #This will sort from highest>lowest
     self.assertEqual(x,[1246, 995, 912, 624, 126, -20, -45])