X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0447be2efe6a9fe13b69b2961b2a94cf11006c48..4409877e19dd9b32818e75823f5264e24607eee5:/test-redis.tcl diff --git a/test-redis.tcl b/test-redis.tcl index 26e22239..1ac877e1 100644 --- a/test-redis.tcl +++ b/test-redis.tcl @@ -1207,6 +1207,10 @@ proc main {server port} { [$r zrange ztmp 1 -1] [$r zrevrange ztmp 1 -1] } {{y x z} {z x y} {x z} {x y}} + test {ZRANGE WITHSCORES} { + $r zrange ztmp 0 -1 withscores + } {y 1 x 10 z 30} + test {ZSETs stress tester - sorting is working well?} { set delta 0 for {set test 0} {$test < 2} {incr test} { @@ -1558,6 +1562,18 @@ proc main {server port} { set _ 1 } {1} + test {MUTLI / EXEC basics} { + $r del mylist + $r rpush mylist a + $r rpush mylist b + $r rpush mylist c + $r multi + set v1 [$r lrange mylist 0 -1] + set v2 [$r ping] + set v3 [$r exec] + list $v1 $v2 $v3 + } {QUEUED QUEUED {{a b c} PONG}} + # Leave the user with a clean DB before to exit test {FLUSHDB} { set aux {}