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

Function test_valueOf

tests/python/test_dicts.py:345–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343
344
345def test_valueOf():
346 items = {'a': 10}
347 result = [0]
348 pm.eval("(result, obj) => {result[0] = obj.valueOf()}")(result, items)
349 assert items == {'a': 10}
350 assert result[0] is items
351
352# toString
353

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected