@@ -0,0 +1,763 @@
+%22%22%22%0ASorting algorithms tests.%0A%22%22%22%0A%0Aimport unittest%0Aimport sortings%0A%0Aclass SelectionSortTest(unittest.TestCase):%0A    %22%22%22%0A    Selection Sort tests.%0A    %22%22%22%0A%0A    def test_selection(self):%0A        %22%22%22Simple test.%0A        %22%22%22%0A        self.assertEquals(sortings.selection_sort(%5B2, 1, 3%5D), %5B1, 2, 3%5D)%0A%0Aclass InsertionSortTest(unittest.TestCase):%0A    %22%22%22%0A    Insertion Sort tests.%0A    %22%22%22%0A%0A    def test_insertion(self):%0A        %22%22%22Simple test.%0A        %22%22%22%0A        self.assertEquals(sortings.insertion_sort(%5B2, 1, 3%5D), %5B1, 2, 3%5D)%0A%0A    def test_antisorted(self):%0A        %22%22%22Sorts antisorted array.%0A        %22%22%22%0A        items = range(10)%0A        self.assertEquals(sortings.insertion_sort(list(reversed(items))), items)        %0A%0Aif __name__ == %22__main__%22:%0A    unittest.main()%0A

Test cases