()
| 483 | |
| 484 | |
| 485 | def test_ndeepmap(): |
| 486 | L = 1 |
| 487 | assert ndeepmap(0, inc, L) == 2 |
| 488 | |
| 489 | L = [1] |
| 490 | assert ndeepmap(0, inc, L) == 2 |
| 491 | |
| 492 | L = [1, 2, 3] |
| 493 | assert ndeepmap(1, inc, L) == [2, 3, 4] |
| 494 | |
| 495 | L = [[1, 2], [3, 4]] |
| 496 | assert ndeepmap(2, inc, L) == [[2, 3], [4, 5]] |
| 497 | |
| 498 | L = [[[1, 2], [3, 4, 5]], [[6], []]] |
| 499 | assert ndeepmap(3, inc, L) == [[[2, 3], [4, 5, 6]], [[7], []]] |
| 500 | |
| 501 | |
| 502 | def test_ensure_dict(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…