Commit 788cfd92 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8f43c4e1
...@@ -368,17 +368,13 @@ def test_restructure(): ...@@ -368,17 +368,13 @@ def test_restructure():
R(z, 'T/T/B') R(z, 'T/T/B')
kind, keys, kids = crack_btree(z) kind, keys, kids = crack_btree(z)
assert kind, keys == (BTREE_NORMAL, []) assert kind, keys == (BTREE_NORMAL, [])
assert len(kids) == 0 assert len(kids) == 1
assert isinstance(kids[0], XLOTree) assert isinstance(kids[0], XLOTree)
kind, keys, kids = crack_btree(kids[0]) kind, keys, kids = crack_btree(kids[0])
""" assert kind, keys == (BTREE_NORMAL, [])
assert kind, keys == (BTREE_NORMAL, []) # XXX or should it be BTREE_ONE here?
# XXX no: we need to wire bucket->next properly
assert len(kids) == 0 assert len(kids) == 0
assert isinstance(kids[0], LOBucket) assert isinstance(kids[0], LOBucket)
assert kids[0].keys() == [] assert kids[0].keys() == []
"""
assert kind == BTREE_EMPTY
# ø -> T/T-B/B # ø -> T/T-B/B
z = Z0() z = Z0()
......
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