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

Function test_concat_mix

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

Source from the content-addressed store, hash-verified

273
274
275def test_concat_mix():
276 items = [1, 2, 3]
277 result = [None]
278 pm.eval("(result, arr) => {result[0] = arr.concat([7,8], true, [0,1])}")(result, items)
279 assert items == [1, 2, 3]
280 assert result[0] == [1, 2, 3, 7, 8, True, 0, 1]
281
282
283def test_concat_object_element():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected