Skip to content

Commit

Permalink
Ziplist encoding now tested with negative integers as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Apr 24, 2012
1 parent 0a8a1e7 commit 69b30cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/type/list-3.tcl
Expand Up @@ -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
Expand Down

0 comments on commit 69b30cf

Please sign in to comment.