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
7f910182
Commit
7f910182
authored
May 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
eae83f34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+10
-2
No files found.
wcfs/internal/xbtree_test.py
View file @
7f910182
...
@@ -510,8 +510,16 @@ def test_restructure():
...
@@ -510,8 +510,16 @@ def test_restructure():
kind
,
keys
,
kids
=
crack_btree
(
kids
[
0
])
kind
,
keys
,
kids
=
crack_btree
(
kids
[
0
])
assert
(
kind
,
keys
)
==
(
BTREE_NORMAL
,
[])
assert
(
kind
,
keys
)
==
(
BTREE_NORMAL
,
[])
assert
len
(
kids
)
==
1
assert
len
(
kids
)
==
1
assert
isinstance
(
kids
[
0
],
LOBucket
)
b1
,
=
kids
assert
crack_bucket
(
kids
[
0
])
==
([
1
],
[
X
[
1
]])
assert
isinstance
(
b1
,
LOBucket
)
assert
crack_bucket
(
b1
)
==
([
1
],
[
X
[
1
]])
assert
b1
.
_p_oid
is
not
None
R
(
z
,
'T/B1'
)
kind
,
keys
,
kids
=
crack_btree
(
z
)
assert
(
kind
,
keys
)
==
(
BTREE_NORMAL
,
[])
assert
len
(
kids
)
==
1
assert
kids
[
0
]
is
b1
assert
crack_bucket
(
b1
)
==
([
1
],
[
X
[
1
]])
# tree with 2 k->v (not-yet committed bucket)
# tree with 2 k->v (not-yet 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