Commit bdb56f28 authored by Kirill Smelkov's avatar Kirill Smelkov

.

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