MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_sort_one

Function test_sort_one

tests/python/test_arrays.py:835–840  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

833
834
835def test_sort_one():
836 items = [5]
837 result = [None]
838 pm.eval("(result, arr) => {result[0] = arr.sort()}")(result, items)
839 assert result[0] is items
840 assert items == [5]
841
842
843def test_sort_numbers():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected