()
| 2155 | |
| 2156 | |
| 2157 | def test_flat_depth_two(): |
| 2158 | items = [0, 1, [2, [3, [4, 5]]]] |
| 2159 | result = [0] |
| 2160 | pm.eval("(result, arr) => {result[0] = arr.flat(2)}")(result, items) |
| 2161 | assert items == [0, 1, [2, [3, [4, 5]]]] |
| 2162 | assert result[0] == [0, 1, 2, 3, [4, 5]] |
| 2163 | |
| 2164 | |
| 2165 | def test_flat_depth_large(): |
nothing calls this directly
no outgoing calls
no test coverage detected