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

Function test_flat_depth_zero

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

Source from the content-addressed store, hash-verified

2140
2141
2142def test_flat_depth_zero():
2143 items = [0, 1, [2, [3, [4, 5]]]]
2144 result = [0]
2145 pm.eval("(result, arr) => {result[0] = arr.flat(0)}")(result, items)
2146 assert result[0] == [0, 1, [2, [3, [4, 5]]]]
2147
2148
2149def test_flat_depth_one():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected