Skip to content

Commit 29a8882

Browse files
committed
-
1 parent ceabcb1 commit 29a8882

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source_py3/test_python_toolbox/test_sequence_tools/test_cute_range.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# This program is distributed under the MIT license.
33

44
from python_toolbox import cute_testing
5+
from python_toolbox import sequence_tools
56

67
from python_toolbox.sequence_tools import CuteRange
78

@@ -41,8 +42,9 @@ def test_infinite():
4142
assert isinstance(cr0, CuteRange)
4243
assert cr0.length == infinity and len(cr0) == 0
4344
assert isinstance(cr0[0], int)
44-
assert cr0[10:].length == cr0[200:] == infinity
45-
assert cr0[:10].length != infinity != cr0[:200]
45+
assert cr0[10:].length == cr0[200:].length == infinity
46+
assert sequence_tools.get_length(cr0[:10]) != infinity != \
47+
sequence_tools.get_length(cr0[:200])
4648

4749
def test_illegal():
4850
illegal_range_arguments_tuples = (

0 commit comments

Comments
 (0)