mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 15:02:46 +08:00
19 lines
508 B
Java
19 lines
508 B
Java
package com.thealgorithms.strings;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class UpperTest {
|
|
|
|
@Test
|
|
public void toUpperCase() {
|
|
String input1 = "hello world";
|
|
String input2 = "hElLo WoRlD";
|
|
String input3 = "HELLO WORLD";
|
|
assertEquals("HELLO WORLD", Upper.toUpperCase(input1));
|
|
assertEquals("HELLO WORLD", Upper.toUpperCase(input2));
|
|
assertEquals("HELLO WORLD", Upper.toUpperCase(input3));
|
|
}
|
|
}
|