Skip to content

Commit

Permalink
add test_splits case
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Oct 3, 2024
1 parent cdf78af commit a13f31e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ def test_splits() -> None:
from tiledbsoma_ml.pytorch import _splits

assert _splits(10, 1).tolist() == [0, 10]
assert _splits(10, 2).tolist() == [0, 5, 10]
assert _splits(10, 3).tolist() == [0, 4, 7, 10]
assert _splits(10, 4).tolist() == [0, 3, 6, 8, 10]
assert _splits(10, 10).tolist() == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Expand Down

0 comments on commit a13f31e

Please sign in to comment.