Skip to content

Commit 27bc1fb

Browse files
update
1 parent 2a60bb1 commit 27bc1fb

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

src/test/java/com/thealgorithms/misc/ShuffleArrayTest.java

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,8 @@
66

77
import org.junit.jupiter.api.Test;
88

9-
/**
10-
* Unit tests for the ShuffleArray class.
11-
*
12-
* @author Rashi Dashore (https://github.com/rashi07dashore)
13-
*/
14-
class ShuffleArrayTest {
15-
16-
/**
17-
* Test for basic shuffling.
18-
*/
9+
public class ShuffleArrayTest {
10+
1911
@Test
2012
void testShuffleBasic() {
2113
int[] arr = {1, 2, 3, 4, 5};
@@ -26,9 +18,6 @@ void testShuffleBasic() {
2618
assertNotEquals(originalArr, arr);
2719
}
2820

29-
/**
30-
* Test for an edge case with a single element.
31-
*/
3221
@Test
3322
void testShuffleSingleElement() {
3423
int[] arr = {1};
@@ -39,9 +28,6 @@ void testShuffleSingleElement() {
3928
assertArrayEquals(originalArr, arr);
4029
}
4130

42-
/**
43-
* Test for an edge case with two elements.
44-
*/
4531
@Test
4632
void testShuffleTwoElements() {
4733
int[] arr = {1, 2};
@@ -55,9 +41,6 @@ void testShuffleTwoElements() {
5541
assertTrue(arr[1] == 1 || arr[1] == 2);
5642
}
5743

58-
/**
59-
* Test for an empty array.
60-
*/
6144
@Test
6245
void testShuffleEmptyArray() {
6346
int[] arr = {};
@@ -68,9 +51,6 @@ void testShuffleEmptyArray() {
6851
assertArrayEquals(originalArr, arr);
6952
}
7053

71-
/**
72-
* Test for large array.
73-
*/
7454
@Test
7555
void testShuffleLargeArray() {
7656
int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
@@ -81,9 +61,6 @@ void testShuffleLargeArray() {
8161
assertNotEquals(originalArr, arr);
8262
}
8363

84-
/**
85-
* Test to ensure all elements are present after shuffle.
86-
*/
8764
@Test
8865
void testShuffleRetainsElements() {
8966
int[] arr = {1, 2, 3, 4, 5};

0 commit comments

Comments
 (0)