Commit ab979249 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 61c14699
......@@ -586,6 +586,25 @@ def test_restructure():
assert crack_bucket(b1) == ([1], [X[1]])
assert crack_bucket(b35) == ([3,5], [X[3], X[5]])
# -> T2/T-T/B1-B3,5
R(z, 'T2/T-T/B1-B3,5')
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, [2])
assert len(kids) == 2
tl, tr = kids
kind, keys, kids = crack_btree(tl)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert kids[0] is b1
kind, keys, kids = crack_btree(tr)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert kids[0] is b35
assert crack_bucket(b1) == ([1], [X[1]])
assert crack_bucket(b35) == ([3,5], [X[3], X[5]])
# XXX T2/B1-B3-B5
# XXX T2/T-T/B1-B3,5
# XXX
......
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