mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +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.backtracking;
|
||||
|
||||
import static java.util.Collections.singletonList;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -11,7 +12,7 @@ public class NQueensTest {
|
||||
|
||||
@Test
|
||||
public void testNQueens1() {
|
||||
List<List<String>> expected = Arrays.asList(Arrays.asList("Q"));
|
||||
List<List<String>> expected = singletonList(singletonList("Q"));
|
||||
assertEquals(expected, NQueens.getNQueensArrangements(1));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user