@@ -0,0 +1,1251 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Aimport os%0Aimport unittest%0A%0Afrom helper.read_data_file import read_int_array%0Afrom sorting.heap_sort import sort%0A%0A%0ABASE_DIR = os.path.dirname(os.path.abspath(__file__))%0A%0A%0Aclass InsertionSortTester(unittest.TestCase):%0A%0A    # Test sort in default order, i.e., in ascending order.%0A    def test_sort_default(self):%0A%0A        array = read_int_array(os.path.join(BASE_DIR, 'data1.data'))%0A        array = sort(array)%0A        expect = %5B65, 76, 86, 113, 140, 417, 444, 445, 567, 589, 637, 647, 702, 864, 969%5D%0A        self.assertEqual(expect, array)%0A%0A    # Test sort in ascending order.%0A    def test_sort_ascending(self):%0A%0A        array = read_int_array(os.path.join(BASE_DIR, 'data1.data'))%0A        array = sort(array, 'asc')%0A        expect = %5B65, 76, 86, 113, 140, 417, 444, 445, 567, 589, 637, 647, 702, 864, 969%5D%0A        self.assertEqual(expect, array)%0A%0A    # Test sort in descending order.%0A    def test_sort_descending(self):%0A%0A        array = read_int_array(os.path.join(BASE_DIR, 'data1.data'))%0A        array = sort(array, 'desc')%0A        expect = %5B969, 864, 702, 647, 637, 589, 567, 445, 444, 417, 140, 113, 86, 76, 65%5D%0A        self.assertEqual(expect, array)%0A%0A%0Aif __name__ == '__main__':%0A%0A    unittest.main()%0A

Add unit test for heap sort implementation.