MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / initial_sort

Method initial_sort

tests/test_api.py:193–199  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

191 def test_evolve_function_basic(self):
192 """Test evolve_function with simple test case"""
193 def initial_sort(arr):
194 # Simple bubble sort
195 for i in range(len(arr)):
196 for j in range(len(arr)-1):
197 if arr[j] > arr[j+1]:
198 arr[j], arr[j+1] = arr[j+1], arr[j]
199 return arr
200
201 test_cases = [
202 ([3, 1, 2], [1, 2, 3]),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected