Question: 3 . Add the First Test Case The function has _ a _ vowel should look familiar. It was one of the functions that you

3. Add the First Test Case
The function has_a_vowel 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 has_a_vowel on the string "aeiou".
Store the result of that function call in a variable called result.
Call the procedure introcs.assert_equals(True,result)
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@mike-panther:~/workspace$ cd exercise1
codio@mike-panther:~/workspace/exercise1$ 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 1/7/2024,11:18:57 AM
You have not called the function 'has_a_vowel' properly.

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!