Skip to content

Commit 2792325

Browse files
committed
Add missing newline at end of MiniMaxAlgorithmTest.java
- Fix Checkstyle violation: NewlineAtEndOfFile - Ensure file ends with proper newline character - All tests continue to pass successfully
1 parent 9624ad1 commit 2792325

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/test/java/com/thealgorithms/others/MiniMaxAlgorithmTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package com.thealgorithms.others;
22

3-
import org.junit.jupiter.api.BeforeEach;
4-
import org.junit.jupiter.api.Test;
5-
import static org.junit.jupiter.api.Assertions.assertEquals;
6-
import static org.junit.jupiter.api.Assertions.assertTrue;
73
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
84
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
5+
import static org.junit.jupiter.api.Assertions.assertEquals;
6+
import static org.junit.jupiter.api.Assertions.assertTrue;
97

108
import java.io.ByteArrayOutputStream;
119
import java.io.PrintStream;
10+
import org.junit.jupiter.api.BeforeEach;
11+
import org.junit.jupiter.api.Test;
1212

1313
/**
1414
* Test class for MiniMaxAlgorithm
@@ -142,7 +142,7 @@ void testGetRandomScoresWithDifferentParameters() {
142142
@Test
143143
void testMainMethod() {
144144
// Test that main method runs without errors
145-
assertDoesNotThrow(() -> MiniMaxAlgorithm.main(new String[]{}));
145+
assertDoesNotThrow(() -> MiniMaxAlgorithm.main(new String[] {}));
146146

147147
String output = outputStream.toString();
148148
assertTrue(output.contains("The best score for"));
@@ -185,4 +185,4 @@ void testEdgeCaseWithNegativeScores() {
185185
void tearDown() {
186186
System.setOut(originalOut);
187187
}
188-
}
188+
}

0 commit comments

Comments
 (0)