Commit 61c14699 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 80f79b9b
...@@ -578,8 +578,17 @@ def test_restructure(): ...@@ -578,8 +578,17 @@ def test_restructure():
assert S(z) == 'T/B1,3' assert S(z) == 'T/B1,3'
z[5] = X[5] z[5] = X[5]
assert S(z) == 'T3/B1-B3,5' assert S(z) == 'T3/B1-B3,5'
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, [3])
b1, b35 = kids
assert isinstance(b1, LOBucket)
assert isinstance(b35, LOBucket)
assert crack_bucket(b1) == ([1], [X[1]])
assert crack_bucket(b35) == ([3,5], [X[3], X[5]])
# XXX tree with 2 buckets # 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