Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
c3077918
Commit
c3077918
authored
May 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
89661f8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+3
-1
No files found.
wcfs/internal/xbtree_test.py
View file @
c3077918
...
@@ -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_b
tree
(
b13
)
==
([
1
,
3
],
[
X
[
1
],
X
[
3
]])
assert
crack_b
ucket
(
b13
)
==
([
1
,
3
],
[
X
[
1
],
X
[
3
]])
# XXX tree with one committed bucket
# XXX tree with one committed bucket
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment