Answered step by step
Verified Expert Solution
Link Copied!

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

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

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

Step: 3

blur-text-image

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

2. Describe the functions of communication

Answered: 1 week ago