MCPcopy
hub / github.com/pyodide/pyodide / test_pyproxy_of_list_join

Function test_pyproxy_of_list_join

src/tests/test_pyproxy.py:1945–1955  ·  view source on GitHub ↗
(selenium)

Source from the content-addressed store, hash-verified

1943
1944@run_in_pyodide
1945def test_pyproxy_of_list_join(selenium):
1946 from pyodide.code import run_js
1947 from pyodide.ffi import to_js
1948
1949 a = ["Wind", "Water", "Fire"]
1950 ajs = to_js(a)
1951 func = run_js("((a, k) => a.join(k))")
1952
1953 assert func(a, None) == func(ajs, None)
1954 assert func(a, ", ") == func(ajs, ", ")
1955 assert func(a, " ") == func(ajs, " ")
1956
1957
1958@run_in_pyodide

Callers

nothing calls this directly

Calls 3

run_jsFunction · 0.90
to_jsFunction · 0.85
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…