Commit baa3ce2a authored by Adam Blank's avatar Adam Blank
Browse files

Update BinarySearcherTests.java

parent 0e300f79
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -47,7 +47,7 @@ public class BinarySearcherTests {
int trial = 0;
while (trial < TRIALS) {
// Generate a random array of a random length
int[] arr = generateRandomSortedArray(r, r.nextInt());
int[] arr = generateRandomSortedArray(r, Math.abs(r.nextInt()));
// We want to test both elements that are in the array and not in the array
// So, run through all the elements in the array, and for each one test both
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment