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

Function test_fill_object

tests/python/test_arrays.py:626–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

624
625
626def test_fill_object():
627 items = [1, 2, 3]
628 result = [None]
629 pm.eval("(result, arr) => {let a = {a:1}; result[0] = arr.fill(a)}")(result, items)
630 assert items == [{"a": 1}, {"a": 1}, {"a": 1}]
631 assert items is result[0]
632 assert items[0] is items[1] is items[2]
633
634# copyWithin
635

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected