projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d344228
)
Ziplist encoding now tested with negative integers as well.
author
antirez
<antirez@gmail.com>
Mon, 23 Apr 2012 15:27:39 +0000
(17:27 +0200)
committer
antirez
<antirez@gmail.com>
Mon, 23 Apr 2012 15:27:46 +0000
(17:27 +0200)
tests/unit/type/list-3.tcl
patch
|
blob
|
blame
|
history
diff --git
a/tests/unit/type/list-3.tcl
b/tests/unit/type/list-3.tcl
index 9410022fdc8495d2cfe25d975ff14576dba3be11..94f9a0b79767310ba8d9dca7a8cfb5898e3a4110 100644
(file)
--- a/
tests/unit/type/list-3.tcl
+++ b/
tests/unit/type/list-3.tcl
@@
-29,6
+29,15
@@
start_server {
set data [randomInt 4294967296]
} {
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
r rpush l $data