Answered step by step
Verified Expert Solution
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
Add the First Test Case
As you can see, we have completed a lot of tests.py already. There is a test procedure testreplacefirst 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 replacefirst 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 replacefirst 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started