diff options
author | Joris | 2020-06-06 10:09:27 +0200 |
---|---|---|
committer | Joris | 2020-06-06 10:09:27 +0200 |
commit | 6b9195000eb5404c247288b384d7ca2bacc1ab23 (patch) | |
tree | d36d669b70d2a5f2789335e814489cd641fbae3e /src/util/test_range.py | |
parent | b244640288648f27ce1fc7be3f175703e0a3412b (diff) |
Add unit tests
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)] |