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

Function test_iter_chunks

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

Source from the content-addressed store, hash-verified

725
726
727def test_iter_chunks():
728 sizes = [14, 8, 5, 9, 7, 9, 1, 19, 8, 19]
729 assert list(iter_chunks(sizes, 19)) == [
730 [14],
731 [8, 5],
732 [9, 7],
733 [9, 1],
734 [19],
735 [8],
736 [19],
737 ]
738 assert list(iter_chunks(sizes, 28)) == [[14, 8, 5], [9, 7, 9, 1], [19, 8], [19]]
739 assert list(iter_chunks(sizes, 67)) == [[14, 8, 5, 9, 7, 9, 1], [19, 8, 19]]
740
741
742def test_stringify():

Callers

nothing calls this directly

Calls 1

iter_chunksFunction · 0.90

Tested by

no test coverage detected