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

Function test_concat_object_element

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

Source from the content-addressed store, hash-verified

281
282
283def test_concat_object_element():
284 d = {"a": 1}
285 items = [1, 2, d]
286 result = [None]
287 pm.eval("(result, arr) => {result[0] = arr.concat()}")(result, items)
288 assert items == [1, 2, d]
289 assert result[0] == [1, 2, d]
290 assert items is not result[0]
291 assert d is items[2]
292 assert d is result[0][2]
293
294# slice
295

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected