File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
source_py3/test_python_toolbox/test_sequence_tools Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22# This program is distributed under the MIT license.
33
44from python_toolbox import cute_testing
5+ from python_toolbox import sequence_tools
56
67from 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
4749def test_illegal ():
4850 illegal_range_arguments_tuples = (
You can’t perform that action at this time.
0 commit comments