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

Function test_toPrimitive_iterable

tests/python/test_objects.py:154–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153
154def test_toPrimitive_iterable():
155 iterable = iter([1,2])
156 toPrimitive = pm.eval("(obj) => { return obj[Symbol.toPrimitive]; }")(iterable)
157 assert repr(toPrimitive).__contains__("<pythonmonkey.JSFunctionProxy object at")
158
159
160def test_constructor_iterable():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected