Add test for Lower (#3328)
This commit is contained in:
parent
ea05286c86
commit
bf03d16303
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));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user