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

Function test_concat_two_arrays

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

Source from the content-addressed store, hash-verified

265
266
267def test_concat_two_arrays():
268 items = [1, 2, 3]
269 result = [None]
270 pm.eval("(result, arr) => {result[0] = arr.concat([7,8], [0,1])}")(result, items)
271 assert items == [1, 2, 3]
272 assert result[0] == [1, 2, 3, 7, 8, 0, 1]
273
274
275def test_concat_mix():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected