Question: Write a test driver that contains several tests for the recentTrend() function. A starter file testing_blackbox_ recentTrend_testdriver_starter .py is provided that contains an example of

 Write a test driver that contains several tests for the recentTrend()function. A starter file testing_blackbox_ recentTrend_testdriver_starter .py is provided that contains an

Write a test driver that contains several tests for the recentTrend() function. A starter file testing_blackbox_ recentTrend_testdriver_starter .py is provided that contains an example of a single test case. Add additional tests to this file, following the example of the textbook. Place testing_blackbox_recentTrend.py and the provided starter file in the same directory so the function recentTrend can be imported correctly. You can directly work on the starter file to write your test driver but make sure you change its name to a3q1v1_testdriver.py. Choose your test cases thoughtfully to cover a range of possible situations. Do NOT bother with test cases that use incorrect data types (i.e. passing in something other than a list, or a list of booleans instead of a list of integers). Instead, focus on tests to expose any possible errors in the function's logic. Exactly how many test cases to use is up to you; include as many as you think you need to discover any errors in the function

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 Databases Questions!