style: resolve some of the UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS warnings (#7240)

This commit is contained in:
Piotr Idzik
2026-01-25 12:44:41 +01:00
committed by GitHub
parent 0b0cefe9f9
commit 6fdf2db298
3 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
package com.thealgorithms.misc;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -67,7 +68,7 @@ public class ShuffleArrayTest {
ShuffleArray.shuffle(arr);
// Check that the shuffled array contains the same elements
assertTrue(arr.length == 5);
assertEquals(5, arr.length);
for (int i = 1; i <= 5; i++) {
assertTrue(contains(arr, i));
}