From: antirez Date: Fri, 18 Dec 2009 12:51:23 +0000 (-0500) Subject: modified a bit the ZREVRANGE test to cover a few lines of code more X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/04c71068a82dfe888e3e63098227f2edb1206a5e modified a bit the ZREVRANGE test to cover a few lines of code more --- diff --git a/test-redis.tcl b/test-redis.tcl index 78cc3317..665d2bbf 100644 --- a/test-redis.tcl +++ b/test-redis.tcl @@ -1185,12 +1185,9 @@ proc main {server port} { } {} test {ZRANGE and ZREVRANGE basics} { - list [$r zrange ztmp 0 -1] [$r zrevrange ztmp 0 -1] - } {{y x z} {z x y}} - - test {ZRANGE and ZREVRANGE stress testing} { - list [$r zrange ztmp 0 -1] [$r zrevrange ztmp 0 -1] - } {{y x z} {z x y}} + list [$r zrange ztmp 0 -1] [$r zrevrange ztmp 0 -1] \ + [$r zrange ztmp 1 -1] [$r zrevrange ztmp 1 -1] + } {{y x z} {z x y} {x z} {x y}} test {ZSETs stress tester - sorting is working well?} { set delta 0