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

Function test_sort_numbers

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

Source from the content-addressed store, hash-verified

841
842
843def test_sort_numbers():
844 items = [4, 2, 6, 7]
845 result = [None]
846 pm.eval("(result, arr) => {result[0] = arr.sort()}")(result, items)
847 assert result[0] is items
848 assert items == [2, 4, 6, 7]
849
850
851def test_sort_strings():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected