diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-03-04 01:33:37 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-03-04 01:33:37 +0100 |
commit | 67cac14343260a225ba8a68f2d3c503c95a2f4ae (patch) | |
tree | 89a4f7c93497fdcac3cfa7611205b656741b7c89 /test-redis.tcl | |
parent | 39191553755d5309e200789cedff50e031909d18 (diff) | |
download | redis-67cac14343260a225ba8a68f2d3c503c95a2f4ae.tar.gz |
fix ZRANK (realize that rank is 1-based due to the skip list header)
Diffstat (limited to 'test-redis.tcl')
-rw-r--r-- | test-redis.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-redis.tcl b/test-redis.tcl index 4ec3830ee..0fc1e7dfc 100644 --- a/test-redis.tcl +++ b/test-redis.tcl @@ -1545,7 +1545,7 @@ proc main {server port} { set ele [lindex [$r zrange myzset $index $index] 0] set rank [$r zrank myzset $ele] if {$rank != $index} { - set err "$ele RANK is wrong! ($rank != [expr $index+1])" + set err "$ele RANK is wrong! ($rank != $index)" break } } |