Question: 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
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
