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
5b329895
Commit
5b329895
authored
May 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7f910182
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+9
-6
No files found.
wcfs/internal/xbtree_test.py
View file @
5b329895
...
...
@@ -529,16 +529,19 @@ def test_restructure():
kind
,
keys
,
kids
=
crack_btree
(
z
)
assert
(
kind
,
keys
)
==
(
BTREE_NORMAL
,
[
2
])
assert
len
(
kids
)
==
2
assert
isinstance
(
kids
[
0
],
LOBucket
)
assert
isinstance
(
kids
[
1
],
LOBucket
)
assert
crack_bucket
(
kids
[
0
])
==
([
1
],
[
X
[
1
]])
assert
crack_bucket
(
kids
[
1
])
==
([
3
],
[
X
[
3
]])
b1
,
b3
=
kids
assert
isinstance
(
b1
,
LOBucket
)
assert
isinstance
(
b3
,
LOBucket
)
assert
crack_bucket
(
b1
)
==
([
1
],
[
X
[
1
]])
assert
crack_bucket
(
b3
)
==
([
3
],
[
X
[
3
]])
R
(
z
,
'T/B1,3'
)
kind
,
keys
,
kids
=
crack_btree
(
z
)
assert
(
kind
,
keys
)
==
(
BTREE_NORMAL
,
[])
assert
len
(
kids
)
==
1
assert
isinstance
(
kids
[
0
],
LOBucket
)
assert
crack_btree
(
kids
[
0
])
==
([
1
,
3
],
[
X
[
1
],
X
[
3
]])
b13
=
kids
[
0
]
assert
b13
is
b1
assert
isinstance
(
b13
,
LOBucket
)
assert
crack_btree
(
b13
)
==
([
1
,
3
],
[
X
[
1
],
X
[
3
]])
# 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