File tree Expand file tree Collapse file tree
src/test/java/com/thealgorithms/others Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package 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 ;
73import static org .junit .jupiter .api .Assertions .assertArrayEquals ;
84import 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
108import java .io .ByteArrayOutputStream ;
119import 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+ }
You can’t perform that action at this time.
0 commit comments