Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
b
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
b
Commits
01b13d79
Commit
01b13d79
authored
Oct 27, 2015
by
Jan Mercl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for PR4.
parent
852c8585
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
all_test.go
all_test.go
+17
-0
No files found.
all_test.go
View file @
01b13d79
...
...
@@ -1330,3 +1330,20 @@ func TestSeek(t *testing.T) {
}
}
}
func
TestPR4
(
t
*
testing
.
T
)
{
tr
:=
TreeNew
(
cmp
)
for
i
:=
0
;
i
<
2
*
kd
+
1
;
i
++
{
k
:=
1000
*
i
tr
.
Set
(
k
,
nil
)
}
tr
.
Delete
(
1000
*
kd
)
for
i
:=
0
;
i
<
kd
;
i
++
{
tr
.
Set
(
1000
*
(
kd
+
1
)
-
1
-
i
,
nil
)
}
k
:=
1000
*
(
kd
+
1
)
-
1
-
kd
tr
.
Set
(
k
,
nil
)
if
_
,
ok
:=
tr
.
Get
(
k
);
!
ok
{
t
.
Fatalf
(
"key lost: %v"
,
k
)
}
}
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