Test case failed when I used generic binary_search of joviandsa library (Optional Bonus 1)

When I used an unrotated list as a test case the output should have been 0 but your generic function returns -1.

Running following:
evaluate_test_cases(count_rotations_generic, tests)

gives following. While the answer should be zero because looking at the inputs it’s pretty obvious that we are rotating it 0 times. -1 output sort of feels that it has been rotated leftward 1 time.

TEST CASE #5

Input:
{‘nums’: [4, 5, 9, 12, 23]}

Expected Output:
0

Actual Output:
-1

Execution Time:
0.004 ms

Test Result:
FAILED

TEST CASE #6

Input:
{‘nums’: []}

Expected Output:
0

Actual Output:
-1

Execution Time:
0.003 ms

Test Result:
FAILED

TEST CASE #7

Input:
{‘nums’: [2]}

Expected Output:
0

Actual Output:
-1

Execution Time:
0.003 ms

Test Result:
FAILED

put this code elif mid_number > nums[mid-1] and mid_number < nums[hi]: return 0 After first one