()
| 2132 | |
| 2133 | |
| 2134 | def test_flat_with_js_array(): |
| 2135 | items = [0, 1, 2, [3, 4]] |
| 2136 | result = [0] |
| 2137 | pm.eval("(result, arr) => {arr[1] = [10,11]; result[0] = arr.flat()}")(result, items) |
| 2138 | assert items == [0, [10, 11], 2, [3, 4]] |
| 2139 | assert result[0] == [0, 10, 11, 2, 3, 4] |
| 2140 | |
| 2141 | |
| 2142 | def test_flat_depth_zero(): |
nothing calls this directly
no outgoing calls
no test coverage detected