Commit 6362d840 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e97cb43f
......@@ -503,6 +503,17 @@ def test_restructure():
R(z, 'T/B1')
assert crack_btree(z) == (BTREE_ONE, ((1, X[1]),), None)
R(z, 'T/T/B1')
kind, keys, kids = crack_btree(z)
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert isinstance(kids[0], XLOTree)
kind, keys, kids = crack_btree(kids[0])
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
assert isinstance(kids[0], LOBucket)
keys, values = crack_bucket(kids[0])
assert keys == [1]
assert values == [X[1]]
......
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