blob: 8a96636e46dc0a24fee8736b381752bc2a7c2d1e (
plain)
1
2
3
4
5
6
|
from todo.util.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)]
|