Question: 2 0 . Add a Test Case Look at the test script test.py . You can see that there is space for an additional test
Add a Test Case
Look at the test script test.py You can see that there is space for an additional test case in the test procedure testavg. We want you to test the function on range To do this:
Create a tuple for range by calling the function and converting it to a tuple.
Pass this tuple to avg using tuple expansion.
Once you have done this, run the test script again to make sure you pass the new test.
def testavg:
Test procedure for function avg
printTesting avg
result func.avg
introcs.assertfloatsequalresult
result func.avg
introcs.assertfloatsequalresult
result func.avg
introcs.assertfloatsequalresult
result func.avg
introcs.assertfloatsequalresult
result func.avg
introcs.assertfloatsequalresult
# Test range here
if namemain:
testavg
printModule func passed all tests.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
