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

Function test_valueOf

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

Source from the content-addressed store, hash-verified

2326
2327
2328def test_valueOf():
2329 items = [1, 2, 1]
2330 result = [0]
2331 pm.eval("(result, arr) => {result[0] = arr.valueOf()}")(result, items)
2332 assert items == [1, 2, 1]
2333 assert result[0] is items
2334
2335# toLocaleString
2336

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected