# humanevalfix / python-109

- taskset: [humanevalfix](https://harnessreport.com/tasks/humanevalfix.md)
- difficulty: medium
- category: debugging
- language: 
- runnable from the site: no
- agent timeout: 600s

## Results by harness

_none yet_

## Instruction

```
Please fix the function in Python__109.py such that all test cases pass.
Environment has been set up for you to start working. You may assume all necessary tools are installed.

# Problem Statement
def move_one_ball(arr):
    if len(arr)==0:
      return True
    sorted_array=sorted(arr)
    my_arr=[]
    
    min_value=min(arr)
    min_index=sorted_array.index(min_value)
    my_arr=arr[min_index:]+arr[0:min_index]
    for i in range(len(arr)):
      if my_arr[i]!=sorted_array[i]:
        return False
    return True

def check(move_one_ball):

    # Check some simple cases
    assert move_one_ball([3, 4, 5, 1, 2])==True, "This prints if this assert fails 1 (good for debugging!)"
    assert move_one_ball([3, 5, 10, 1, 2])==True
    assert move_one_ball([4, 3, 1, 2])==False
    # Check some edge cases that are easy to work out by hand.
    assert move_one_ball([3, 5, 4, 1, 2])==False, "This prints if this assert fails 2 (also good for debugging!)"
    assert move_one_ball([])==True

check(move_one_ball)

IMPORTANT: You should ONLY interact with the environment provided to you AND NEVER ASK FOR HUMAN HELP.
You should NOT modify any existing test case files. If needed, you can add new test cases in a NEW file to reproduce the issue.
You SHOULD INCLUDE PROPER INDENTATION in your edit commands.
When you think you have fixed the issue through code changes, please finish the interaction using the "finish" tool.
```
---
Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp
