Commit 9f61c6cd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bb633687
......@@ -297,13 +297,22 @@ def test_iterSplitByN():
return tuple(xbtree._iterSplitByN(lo, hi, nsplit))
assert X(0,0, 0) == ( [0,0] ,)
assert X(0,0, 0) == ( [0,0], )
assert X(0,0, 1) == ( )
assert X(0,1, 0) == ( [0,1] ,)
assert X(0,1, 0) == ( [0,1], )
assert X(0,1, 1) == ( )
assert X(0,2, 0) == ( [0,2] ,)
assert X(0,2, 1) == ( [0,1,2] ,)
assert X(0,2, 0) == ( [0,2], )
assert X(0,2, 1) == ( [0,1,2], )
assert X(0,2, 2) == ( )
assert X(0,3, 0) == ( [0,3] ,)
assert X(0,3, 0) == ( [0,3], )
assert X(0,3, 1) == ( [0,1,3], [0,2,3] )
assert X(0,3, 2) == ( [0,1,2,3] ,)
assert X(0,3, 2) == ( [0,1,2,3], )
assert X(0,4, 0) == ( [0,4], )
assert X(0,4, 1) == ( [0,1,4], [0,2,4], [0,3,4] )
assert X(0,4, 2) == ( [0,1,2,4], [0,1,3,4], [0,2,3,4] )
assert X(0,4, 3) == ( [0,1,2,3,4], )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment