Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 1 . Add the First Test Case As you can see, we have completed a lot of tests.py already. There is a test procedure

21. Add the First Test Case
As you can see, we have completed a lot of tests.py already. There is a test procedure test_replace_first and we remembered to call it at the bottom of the script. All you need to do is to add test cases and write your name and date in the file.
You already designed several test cases for the function replace_first in the activity Designing Tests with Multiple Arguments. You may want to remind yourself of those test cases now. However, to help you with this exercise, we want you to add the test cases in a specific order. Look again at the specification of replace_first in funcs.py. You will see several examples. Examples are test cases! In fact, it is always a good idea to include specification examples in your testing plan.
Add a test case for the first example to the test procedure now. Do not add any other test cases. When you are done, run the test script. If you have done everything correctly, you should not see any errors (yet).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

=+16.10. 2.19 16.9 | Assume u(1) Answered: 1 week ago

Answered: 1 week ago