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

Function test_copyWithin

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

Source from the content-addressed store, hash-verified

635
636
637def test_copyWithin():
638 items = [1, 2, 3]
639 result = [None]
640 pm.eval("(result, arr) => {result[0] = arr.copyWithin(0,1)}")(result, items)
641 assert items == [2, 3, 3]
642 assert items is result[0]
643
644
645def test_copyWithin_no_args():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected