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

Function test_get

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

Source from the content-addressed store, hash-verified

9
10
11def test_get():
12 items = [1, 2, 3]
13 result = [None]
14 pm.eval("(result, arr) => {result[0] = arr[1]}")(result, items)
15 assert result[0] == 2
16
17
18def test_get_length():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected