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

Function test_get_length

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

Source from the content-addressed store, hash-verified

16
17
18def test_get_length():
19 items = [1, 2, 3]
20 result = [None]
21 pm.eval("(result, arr) => {result[0] = arr.length}")(result, items)
22 assert result[0] == 3
23
24
25def test_missing_func():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected