Skip to content

Commit bf03d16

Browse files
authored
Add test for Lower (TheAlgorithms#3328)
1 parent ea05286 commit bf03d16

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.thealgorithms.strings;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import static org.junit.jupiter.api.Assertions.*;
6+
7+
public class LowerTest {
8+
@Test
9+
public void toLowerCase() {
10+
String input1 = "hello world";
11+
String input2 = "HelLO WoRld";
12+
String input3 = "HELLO WORLD";
13+
14+
assertEquals("hello world", Lower.toLowerCase(input1));
15+
assertEquals("hello world", Lower.toLowerCase(input2));
16+
assertEquals("hello world", Lower.toLowerCase(input3));
17+
}
18+
}

0 commit comments

Comments
 (0)