From f2be7f036a62028cdb9933cf5c59506803444837 Mon Sep 17 00:00:00 2001 From: Ravinder Khangura <38717332+ravinderkhangura@users.noreply.github.com> Date: Thu, 21 Oct 2021 16:23:24 -0400 Subject: [PATCH 1/2] Update test_iterative.py mentioning test --- src/iterative_sorting/test_iterative.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iterative_sorting/test_iterative.py b/src/iterative_sorting/test_iterative.py index df11b648..8ce99670 100644 --- a/src/iterative_sorting/test_iterative.py +++ b/src/iterative_sorting/test_iterative.py @@ -13,7 +13,8 @@ def test_selection_sort(self): self.assertEqual(selection_sort(arr2), []) self.assertEqual(selection_sort(arr3), [0,1,2,3,4,5]) self.assertEqual(selection_sort(arr4), sorted(arr4)) - + +# this is a test for sort function def test_bubble_sort(self): arr1 = [1, 5, 8, 4, 2, 9, 6, 0, 3, 7] arr2 = [] From dd1b5deb5b81193de027c30ec387eec0be05606e Mon Sep 17 00:00:00 2001 From: Ravinder Khangura <38717332+ravinderkhangura@users.noreply.github.com> Date: Thu, 21 Oct 2021 16:27:49 -0400 Subject: [PATCH 2/2] Update test_recursive.py test case --- src/recursive_sorting/test_recursive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/recursive_sorting/test_recursive.py b/src/recursive_sorting/test_recursive.py index 576d3c87..ba5df968 100644 --- a/src/recursive_sorting/test_recursive.py +++ b/src/recursive_sorting/test_recursive.py @@ -1,7 +1,7 @@ import unittest import random from recursive_sorting import * - +#test case 1 class RecursiveSortingTests(unittest.TestCase): def test_merge_sort(self): arr1 = [1, 5, 8, 4, 2, 9, 6, 0, 3, 7] @@ -39,4 +39,4 @@ def test_merge_sort(self): if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()