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

Function test_ndeepmap

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ndeepmapFunction · 0.90

Tested by

no test coverage detected