Commit bdb56f28 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 404d4ec6
......@@ -526,24 +526,11 @@ def test_restructure():
"""
z = Z0()
R(z, 'T0/T-T/B-B')
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, [0])
assert len(kids) == 2
Tl, Tr = kids
assert isinstance(Tl, XLOTree)
assert isinstance(Tr, XLOTree)
kind, keys, kids = crack_btree(Tl)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert isinstance(kids[0], LOBucket)
assert crack_bucket(kids[0]) == ([], [])
kind, keys, kids = crack_btree(Tr)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert isinstance(kids[0], LOBucket)
assert crack_bucket(kids[0]) == ([], [])
Tl, Tr = assertT(z, [0], 'T','T')
bl, = assertT(Tl, [], 'B')
br, = assertT(Tr, [], 'B')
assertB(bl)
assertB(br)
"""
# tree with 1 k->v (not yet committed bucket)
......
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