From: antirez <antirez@gmail.com> Date: Mon, 23 Apr 2012 15:27:39 +0000 (+0200) Subject: Ziplist encoding now tested with negative integers as well. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/69b30cfcb6cdaee4a9e12eec2fb3a8a2aa093e7f Ziplist encoding now tested with negative integers as well. --- diff --git a/tests/unit/type/list-3.tcl b/tests/unit/type/list-3.tcl index 9410022f..94f9a0b7 100644 --- 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