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

Function test_concat_empty_arg

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

Source from the content-addressed store, hash-verified

256
257
258def test_concat_empty_arg():
259 items = [1, 2, 3]
260 result = [None]
261 pm.eval("(result, arr) => {result[0] = arr.concat()}")(result, items)
262 assert items == [1, 2, 3]
263 assert result[0] == [1, 2, 3]
264 assert items is not result[0]
265
266
267def test_concat_two_arrays():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected