Question: write automatic tests for the merge_sort_in_place function by completing the body of the test_merge_sort_in_place function. The merge_sort_in_place function sorts a list from the smallest to

 write automatic tests for the merge_sort_in_place function by completing the body of the test_merge_sort_in_place function. The merge_sort_in_place function sorts a list from the smallest to the greatest element. We have not covered lists yet. Please, consider them as a series of elements. Your task is to use several assert statements (within the test_merge_sort_in_place function) with calls to the merge_sort_in_place function using different arguments. The test_merge_sort_in_place function can then be used to ascertain that the merge_sort_in_place function returns the expected results. Note that you are required to implement at least 5 additional assert statements (there will be 6 in total). Choose the tests so that a correct implementation of the is_prime function passes but an incorrect implementation fails.   ?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!

Q:

IL