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
c62e4fa5
Commit
c62e4fa5
authored
May 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5b329895
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
wcfs/internal/xbtree.py
wcfs/internal/xbtree.py
+1
-1
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+6
-0
No files found.
wcfs/internal/xbtree.py
View file @
c62e4fa5
...
...
@@ -390,7 +390,7 @@ def Restructure(ztree, newStructure):
# set znode states according to established tnew->znode association
rlevelv
=
rlevelv_orig
for
rnodev
in
r
levelv
:
for
rnodev
in
r
eversed
(
rlevelv
):
# bottom -> up
for
rn
in
rnodev
:
node
=
rn
.
node
assert
isinstance
(
node
,
(
Tree
,
Bucket
))
...
...
wcfs/internal/xbtree_test.py
View file @
c62e4fa5
...
...
@@ -534,8 +534,14 @@ def test_restructure():
assert
isinstance
(
b3
,
LOBucket
)
assert
crack_bucket
(
b1
)
==
([
1
],
[
X
[
1
]])
assert
crack_bucket
(
b3
)
==
([
3
],
[
X
[
3
]])
assert
b1
.
_p_oid
is
None
assert
b3
.
_p_oid
is
None
R
(
z
,
'T/B1,3'
)
kind
,
keys
,
kids
=
crack_btree
(
z
)
# XXX here -> btree_one
# XXX -> after commit
assert
(
kind
,
keys
)
==
(
BTREE_NORMAL
,
[])
assert
len
(
kids
)
==
1
b13
=
kids
[
0
]
...
...
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