Skip to content

Commit 3aadb9d

Browse files
authored
Add tests for vowels check (TheAlgorithms#3658)
1 parent 9a09a9e commit 3aadb9d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.thealgorithms.strings;
2+
3+
import static org.junit.jupiter.api.Assertions.*;
4+
5+
import org.junit.jupiter.api.Test;
6+
7+
public class CheckVowelsTest {
8+
9+
@Test
10+
public void isVowel() {
11+
assertTrue(CheckVowels.hasVowels("foo"));
12+
assertTrue(CheckVowels.hasVowels("bar"));
13+
assertFalse(CheckVowels.hasVowels("why"));
14+
assertFalse(CheckVowels.hasVowels("myths"));
15+
}
16+
}

0 commit comments

Comments
 (0)