MCPcopy Create free account
hub / github.com/dask/dask / test_ndeepmap

Function test_ndeepmap

dask/tests/test_utils.py:488–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

486
487
488def test_ndeepmap():
489 L = 1
490 assert ndeepmap(0, inc, L) == 2
491
492 L = [1]
493 assert ndeepmap(0, inc, L) == 2
494
495 L = [1, 2, 3]
496 assert ndeepmap(1, inc, L) == [2, 3, 4]
497
498 L = [[1, 2], [3, 4]]
499 assert ndeepmap(2, inc, L) == [[2, 3], [4, 5]]
500
501 L = [[[1, 2], [3, 4, 5]], [[6], []]]
502 assert ndeepmap(3, inc, L) == [[[2, 3], [4, 5, 6]], [[7], []]]
503
504
505def test_ensure_dict():

Callers

nothing calls this directly

Calls 1

ndeepmapFunction · 0.90

Tested by

no test coverage detected