File tree 1 file changed +4
-5
lines changed
src/test/java/com/thealgorithms/shufflealgorithm
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import static org .junit .jupiter .api .Assertions .assertArrayEquals ;
4
4
import static org .junit .jupiter .api .Assertions .assertEquals ;
5
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
5
6
6
7
import com .thealgorithms .shufflealogrithm .ConstrainedShuffle ;
7
8
import java .util .Arrays ;
@@ -34,7 +35,7 @@ void testPreserveArrayLengthAndElements() {
34
35
}
35
36
36
37
for (int num : arrayCopy ) {
37
- assertEquals ( true , originalElements .contains (num ),
38
+ assertTrue ( originalElements .contains (num ),
38
39
"Array elements should be preserved" );
39
40
}
40
41
}
@@ -91,8 +92,7 @@ void testInternalElementsShuffled() {
91
92
}
92
93
}
93
94
94
- assertEquals (
95
- true , hasShuffled ,
95
+ assertTrue (hasShuffled ,
96
96
"Internal elements should shuffle between first and last positions" );
97
97
}
98
98
@@ -108,5 +108,4 @@ void testArrayWithIdenticalElements() {
108
108
expectedArray , identicalArray ,
109
109
"Array with all identical elements should remain unchanged" );
110
110
}
111
- }
112
-
111
+ }
You can’t perform that action at this time.
0 commit comments