diff options
Diffstat (limited to 'src/util/test_range.py')
-rw-r--r-- | src/util/test_range.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/test_range.py b/src/util/test_range.py new file mode 100644 index 0000000..0bd909b --- /dev/null +++ b/src/util/test_range.py @@ -0,0 +1,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)] |