Skip to content

Commit 9402fc1

Browse files
authored
Update BucketSortHashBehaviorTest.java
1 parent a38e538 commit 9402fc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/thealgorithms/sorts/BucketSortHashBehaviorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ void sortStillCorrectWhenAllEqual() {
2323
assertArrayEquals(expected, arr);
2424

2525
// Observe bucket mapping (all collapse to index 0)
26-
Integer min = 1, max = 1;
26+
Integer min = 1,
27+
Integer max = 1;
2728
int numberOfBuckets = Math.max(arr.length / 10, 1); // same as BUCKET_DIVISOR rule
2829
int idx = pseudoHash(1, min, max, numberOfBuckets);
2930
// idx will be 0 because NaN cast to int -> 0 in Java

0 commit comments

Comments
 (0)