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
fcd7d1b1
Commit
fcd7d1b1
authored
May 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2e1fb4d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+13
-3
No files found.
wcfs/internal/xbtree_test.py
View file @
fcd7d1b1
...
...
@@ -473,7 +473,11 @@ def test_restructure():
for
(
k
,
v
)
in
items
:
assert
ztree
[
k
]
==
v
newStructure
=
xbtree
.
TopoDecode
(
newtopo
)
if
isinstance
(
newtopo
,
str
):
newStructure
=
xbtree
.
TopoDecode
(
newtopo
)
else
:
assert
isinstance
(
newtopo
,
xbtree
.
Tree
)
newStructure
=
newtopo
xbtree
.
Restructure
(
ztree
,
newStructure
)
assert
xbtree
.
StructureOf
(
ztree
)
==
newStructure
...
...
@@ -676,8 +680,14 @@ def test_restructure():
# ( we make sure that Restructure can make the restructurement and that
# after restructure a tree remains valid without any error introduced )
for
nkeys
in
range
(
5
):
# XXX
pass
for
nkeys
in
range
(
5
):
# XXX ↑
for
xkeyv
in
xbtree
.
_iterSplitByN
(
-
1
,
N
,
nkeys
):
keyv
=
xkeyv
[
1
:
-
1
]
# -1, ..., N -> ...
#print(keyv)
z
=
Z
(
*
keyv
)
for
tree
in
xbtree
.
AllStructs
(
keyv
,
1
,
1
):
# XXX maxdepth -> 2, maxsplit -> 2?
#print('\t%s' % xbtree.TopoEncode(tree))
R
(
z
,
tree
)
def
test_walkBFS
():
...
...
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