Commit 7f910182 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent eae83f34
...@@ -510,8 +510,16 @@ def test_restructure(): ...@@ -510,8 +510,16 @@ def test_restructure():
kind, keys, kids = crack_btree(kids[0]) kind, keys, kids = crack_btree(kids[0])
assert (kind, keys) == (BTREE_NORMAL, []) assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1 assert len(kids) == 1
assert isinstance(kids[0], LOBucket) b1, = kids
assert crack_bucket(kids[0]) == ([1], [X[1]]) assert isinstance(b1, LOBucket)
assert crack_bucket(b1) == ([1], [X[1]])
assert b1._p_oid is not None
R(z, 'T/B1')
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert kids[0] is b1
assert crack_bucket(b1) == ([1], [X[1]])
# tree with 2 k->v (not-yet committed bucket) # tree with 2 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