We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b02b41 commit 140f6ecCopy full SHA for 140f6ec
1 file changed
src/test/java/com/thealgorithms/strings/UpperTest.java
@@ -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