Commit 6e5b283b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8bd947b1
......@@ -383,8 +383,8 @@ def Restructure(ztree, newStructure):
# chain buckets via .next_bucket
assert len(rbucketv) > 0
for i in range(len(rbucketv)-1):
assert rbucketv[i].range.khi <= rbucketv[i+1].klo
rbucketv[i] .node.next_bucket = rbucketv[i+1].node
assert rbucketv[i].range.khi <= rbucketv[i+1].range.klo
rbucketv[i].node.next_bucket = rbucketv[i+1].node
rbucketv[-1].node.next_bucket = None
# associate every bucket to zbucket
......
......@@ -383,13 +383,6 @@ def test_restructure():
assert isinstance(kids[0], LOBucket)
assert kids[0].keys() == []
# ø -> T/T-B/B
z = Z0()
R(z, 'T1/T-B/B')
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, 0)
assert len(kids) == 1
# ø -> T/T-T/B-B
z = Z0()
R(z, 'T0/T-T/B-B')
......
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