mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-08 02:04:31 +08:00
Add test for Lower (#3328)
This commit is contained in:
18
src/test/java/com/thealgorithms/strings/LowerTest.java
Normal file
18
src/test/java/com/thealgorithms/strings/LowerTest.java
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package com.thealgorithms.strings;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
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));
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user