MCPcopy
hub / github.com/pyodide/pyodide / test_generator2

Function test_generator2

src/tests/test_pyproxy.py:229–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227 assert set(l) == {"a", "b"}
228
229 def test_generator2():
230 acc = 0
231 for i in range(10):
232 r = yield acc
233 acc += i * r
234
235 c = test_generator2()
236

Callers 1

test_pyproxy_iterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…