Add test for Lower (#3328)

This commit is contained in:
ff124012 2022-10-23 04:17:18 +09:00 committed by GitHub
parent ea05286c86
commit bf03d16303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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));
}
}