chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
@@ -0,0 +1,18 @@
import sys
import pytest
from ray._private.collections_utils import split
def test_split():
ints = list(range(0, 5))
assert list(split(ints, 5)) == [ints]
assert list(split(ints, 10)) == [ints]
assert list(split(ints, 1)) == [[e] for e in ints]
assert list(split(ints, 2)) == [[0, 1], [2, 3], [4]]
if __name__ == "__main__":
sys.exit(pytest.main(["-v", __file__]))