Skip to content

Commit 140f6ec

Browse files
authored
Add test for Upper (TheAlgorithms#3001)
1 parent 1b02b41 commit 140f6ec

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 UpperTest {
8+
@Test
9+
public void toUpperCase() {
10+
String input1 = "hello world";
11+
String input2 = "hElLo WoRlD";
12+
String input3 = "HELLO WORLD";
13+
assertEquals("HELLO WORLD", Upper.toUpperCase(input1));
14+
assertEquals("HELLO WORLD", Upper.toUpperCase(input2));
15+
assertEquals("HELLO WORLD", Upper.toUpperCase(input3));
16+
}
17+
}

0 commit comments

Comments
 (0)