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
68627a16
Commit
68627a16
authored
Jul 22, 2013
by
Jan Mercl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdfa: Fix 32b systems constant overflow III.
parent
5979962b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
all_test.go
all_test.go
+7
-4
No files found.
all_test.go
View file @
68627a16
...
...
@@ -32,6 +32,9 @@ var caller = func(s string, va ...interface{}) {
fmt
.
Println
()
}
var
aaa0
=
int64
(
0xaaaaaaaa
)
var
aaa
=
int
(
aaa0
)
func
isNil
(
p
interface
{})
bool
{
switch
x
:=
p
.
(
type
)
{
case
*
x
:
...
...
@@ -203,7 +206,7 @@ func TestSetGet0(t *testing.T) {
func
TestSetGet1
(
t
*
testing
.
T
)
{
const
N
=
90000
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
0xaaaa
aaa
,
314159265
}
{
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
aaa
,
314159265
}
{
r
:=
TreeNew
(
cmp
)
set
:=
r
.
Set
a
:=
make
([]
int
,
N
)
...
...
@@ -299,7 +302,7 @@ func BenchmarkGetRnd(b *testing.B) {
func
TestSetGet2
(
t
*
testing
.
T
)
{
const
N
=
70000
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
0xaaaa
aaa
,
314159265
}
{
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
aaa
,
314159265
}
{
r
:=
TreeNew
(
cmp
)
set
:=
r
.
Set
a
:=
make
([]
int
,
N
)
...
...
@@ -458,7 +461,7 @@ func TestDelete0(t *testing.T) {
func
TestDelete1
(
t
*
testing
.
T
)
{
const
N
=
100000
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
0xaaaa
aaa
,
314159265
}
{
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
aaa
,
314159265
}
{
r
:=
TreeNew
(
cmp
)
set
:=
r
.
Set
a
:=
make
([]
int
,
N
)
...
...
@@ -513,7 +516,7 @@ func BenchmarkDelRnd(b *testing.B) {
func
TestDelete2
(
t
*
testing
.
T
)
{
const
N
=
80000
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
0xaaaa
aaa
,
314159265
}
{
for
_
,
x
:=
range
[]
int
{
0
,
-
1
,
0x55555555
,
aaa
,
314159265
}
{
r
:=
TreeNew
(
cmp
)
set
:=
r
.
Set
a
:=
make
([]
int
,
N
)
...
...
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