def dHeapSort(x): heapSort = HeapSort(x) x = heapSort.sort()
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])