We need to implement a test class for the functionality that identifies and extracts vowels from a given word or string. The tests should validate various scenarios, including edge cases.
Checklist:
[ ] Create a test class (e.g., VowelFinderTest) for the existing vowel finder functionality
[ ] Include unit tests for the following scenarios
Normal strings containing vowels (e.g., "Hello", "Programming").
Strings without vowels (e.g., "Rhythm", "XYZ").
Case sensitivity (e.g., "ApPle", "banana").
An empty string as input.
A string with only vowels (e.g., "AEIOU").
Example Test Cases:
Test case for input: "Programming"
Output: "o"
Test case for input: "Hello World"
Output: "eoo"
Test case for input: "Rhythm"
Output: ""
Test case for input: ""
Output: ""
Additional Notes:
Use a testing framework like JUnit (or any preferred framework).
Ensure to cover all edge cases and validate the outputs against the expected results.
Consider using assertions to verify the correctness of the output.
Summary:
We need to implement a test class for the functionality that identifies and extracts vowels from a given word or string. The tests should validate various scenarios, including edge cases.
Checklist:
Example Test Cases:
Additional Notes: