Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 . Add the First Test Case The function has _ a _ vowel should look familiar. It was one of the functions that you
Add the First Test Case
The function hasavowel should look familiar. It was one of the functions that you had to design test cases for in a previous activity. However, to better aid you with this exercise, we want you to start off with a specific test case. Open the file tests.py and look for the comment:
# Put your code below this line
Below, this line, you should do three things:
Call the function hasavowel on the string "aeiou".
Store the result of that function call in a variable called result.
Call the procedure introcs.assertequalsTrueresult
The latter procedure verifies that the variable result contains the answer we expect, which is True. Because aeiou does not demonstrate the bug, the function will get the right answer here. So when you run the script again, everything should still appear normal:
codio@mikepanther:~workspace$ cd exercise
codio@mikepanther:~workspaceexercise$ python tests.py
Module funcs is working correctly
Before checking that you got it right, make sure to add your name and date to the file. We will be regularly checking this from now on
Check the Test Case
You may run this test multiple times.
Check It
LAST RUN on :: AM
You have not called the function 'hasavowel' properly.
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