blob: 0bd909b99db168700dcb6794c86a94ee212ef433 (
plain)
1
2
3
4
5
6
|
from range import from_indexes, Range
def test_from_indexes():
assert from_indexes([]) == []
assert from_indexes([1]) == [Range(1, 1)]
assert from_indexes([9, 6, 0, 10]) == [Range(0, 1), Range(6, 1), Range(9, 2)]
|