Commit c3077918 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 89661f8a
...@@ -385,9 +385,11 @@ zbcheck._type2kind[XLOTree] = (zbcheck.TYPE_BTREE, True) ...@@ -385,9 +385,11 @@ zbcheck._type2kind[XLOTree] = (zbcheck.TYPE_BTREE, True)
zbcheck._btree2bucket[XLOTree] = XLOTree._bucket_type zbcheck._btree2bucket[XLOTree] = XLOTree._bucket_type
def crack_btree(ztree): def crack_btree(ztree):
assert xbtree._zclassify(ztree).is_ztree, ztree
return zbcheck.crack_btree(ztree, is_mapping=True) return zbcheck.crack_btree(ztree, is_mapping=True)
def crack_bucket(zbucket): def crack_bucket(zbucket):
assert xbtree._zclassify(zbucket).is_zbucket, zbucket
return zbcheck.crack_bucket(zbucket, is_mapping=True) return zbcheck.crack_bucket(zbucket, is_mapping=True)
...@@ -564,7 +566,7 @@ def test_restructure(): ...@@ -564,7 +566,7 @@ def test_restructure():
b13 = kids[0] b13 = kids[0]
assert b13 is b1 assert b13 is b1
assert isinstance(b13, LOBucket) assert isinstance(b13, LOBucket)
assert crack_btree(b13) == ([1,3], [X[1], X[3]]) assert crack_bucket(b13) == ([1,3], [X[1], X[3]])
# XXX tree with one committed bucket # XXX tree with one 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