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

Function test_concat_primitive

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

Source from the content-addressed store, hash-verified

240
241
242def test_concat_primitive():
243 items = [1, 2, 3]
244 result = [None]
245 pm.eval("(result, arr) => {result[0] = arr.concat(4)}")(result, items)
246 assert items == [1, 2, 3]
247 assert result[0] == [1, 2, 3, 4]
248
249
250def test_concat_array():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected