Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c4a47552
Commit
c4a47552
authored
Apr 23, 2012
by
antirez
Browse files
Ziplist encoding now tested with negative integers as well.
parent
d3442287
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/list-3.tcl
View file @
c4a47552
...
@@ -29,6 +29,15 @@ start_server {
...
@@ -29,6 +29,15 @@ start_server {
set data
[
randomInt 4294967296
]
set data
[
randomInt 4294967296
]
}
{
}
{
set data
[
randomInt 18446744073709551616
]
set data
[
randomInt 18446744073709551616
]
}
{
set data -
[
randomInt 65536
]
if
{
$data
eq
{
-0
}}
{
set data 0
}
}
{
set data -
[
randomInt 4294967296
]
if
{
$data
eq
{
-0
}}
{
set data 0
}
}
{
set data -
[
randomInt 18446744073709551616
]
if
{
$data
eq
{
-0
}}
{
set data 0
}
}
}
lappend l $data
lappend l $data
r rpush l $data
r rpush l $data
...
...
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