Question: Purpose: To practice using blackbox testing without seeing a functions codeBlack box tests are typically best written BEFORE you even start writing the function they
Purpose: To practice using blackbox testing without seeing a functions codeBlack box tests are typically best written BEFORE you even start writing the function they are intended totest. For this question, you will write a series of black box tests for a function that you never write or seeyourself.The improvedAverage functionThe function you are testing is called improvedAverage The function accepts a single parameter, whichis a list of integers. The function should return the value True if the average of the last values in thelist is greater than the average of all of the other values ie everything else EXCEPT the last valuesand False otherwise.If the list is empty or contains fewer than values, the value None should be returned instead.Remember: you are not writing this function. You just need to understand what it is supposed to do sothat you can write effective test cases for itWrite a test driverWrite a test driver that contains several tests for the improvedAverage function. A starter file is providedthat contains an example of a single test case. Add additional tests to this file, following the example ofthe textbook.Choose your test cases thoughtfully to cover a range of possible situations. Do NOT bother with test casesthat use incorrect data types ie passing in something other than a list, or a list of booleans instead of alist of integers Instead, focus on tests to expose any possible errors in the functions logic. Exactly howmany test cases to use is up to you; include as many as you think you need to discover any errors in thefunction
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
