mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
General performance improvement (#6078)
This commit is contained in:
committed by
GitHub
parent
7b962a4a1d
commit
df0c997e4b
@@ -1,5 +1,6 @@
|
||||
package com.thealgorithms.strings;
|
||||
|
||||
import static java.util.Collections.emptyList;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import java.util.Arrays;
|
||||
@@ -52,7 +53,7 @@ public class WordLadderTest {
|
||||
@Test
|
||||
public void testWordLadder3() {
|
||||
|
||||
List<String> wordList3 = Arrays.asList();
|
||||
List<String> wordList3 = emptyList();
|
||||
assertEquals(WordLadder.ladderLength("hit", "cog", wordList3), 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user