mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-05 08:17:33 +08:00
19 lines
519 B
Java
19 lines
519 B
Java
package com.thealgorithms.strings;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class LowerTest {
|
|
@Test
|
|
public void toLowerCase() {
|
|
String input1 = "hello world";
|
|
String input2 = "HelLO WoRld";
|
|
String input3 = "HELLO WORLD";
|
|
|
|
assertEquals("hello world", Lower.toLowerCase(input1));
|
|
assertEquals("hello world", Lower.toLowerCase(input2));
|
|
assertEquals("hello world", Lower.toLowerCase(input3));
|
|
}
|
|
}
|