()
| 2147 | |
| 2148 | |
| 2149 | def test_flat_depth_one(): |
| 2150 | items = [0, 1, [2, [3, [4, 5]]]] |
| 2151 | result = [0] |
| 2152 | pm.eval("(result, arr) => {result[0] = arr.flat(1)}")(result, items) |
| 2153 | assert items == [0, 1, [2, [3, [4, 5]]]] |
| 2154 | assert result[0] == [0, 1, 2, [3, [4, 5]]] |
| 2155 | |
| 2156 | |
| 2157 | def test_flat_depth_two(): |
nothing calls this directly
no outgoing calls
no test coverage detected