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

Function ident

tests/python/test_pythonmonkey_eval.py:311–312  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

309def test_eval_functions_roundtrip():
310 # BF-60 https://github.com/Distributive-Network/PythonMonkey/pull/18
311 def ident(x):
312 return x
313 js_fn_back = pm.eval("(py_fn) => py_fn(()=>{ return 'YYZ' })")(ident)
314 # pm.collect() # TODO: to be fixed in BF-59
315 assert "YYZ" == js_fn_back()

Callers 3

not_raiseFunction · 0.85
should_raiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected