()
| 318 | def test_eval_functions_pyfunction_in_closure(): |
| 319 | # BF-58 https://github.com/Distributive-Network/PythonMonkey/pull/19 |
| 320 | def fn1(): |
| 321 | def fn0(n): |
| 322 | return n + 100 |
| 323 | return fn0 |
| 324 | assert 101.9 == fn1()(1.9) |
| 325 | assert 101.9 == pm.eval("(fn1) => { return fn1 }")(fn1())(1.9) |
| 326 | assert 101.9 == pm.eval("(fn1, x) => { return fn1()(x) }")(fn1, 1.9) |
no outgoing calls
no test coverage detected