Function
test_array_extend
(selenium_module_scope, l1, l2)
Source from the content-addressed store, hash-verified
| 1547 | @example(l1=[], l2=[1]) |
| 1548 | @run_in_pyodide |
| 1549 | def test_array_extend(selenium_module_scope, l1, l2): |
| 1550 | from pyodide.ffi import to_js |
| 1551 | |
| 1552 | l1js1 = to_js(l1) |
| 1553 | l1js1.extend(l2) |
| 1554 | |
| 1555 | l1js2 = to_js(l1) |
| 1556 | l1js2 += l2 |
| 1557 | |
| 1558 | l1.extend(l2) |
| 1559 | |
| 1560 | assert l1 == l1js1.to_py() |
| 1561 | assert l1 == l1js2.to_py() |
| 1562 | |
| 1563 | |
| 1564 | @run_in_pyodide |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…