Commit 88f77a2b authored by antirez's avatar antirez
Browse files

Added an SMOVE test where src and dest key are the same.

parent e51a218a
...@@ -317,6 +317,13 @@ start_server { ...@@ -317,6 +317,13 @@ start_server {
assert_error "ERR*wrong kind*" {r smove myset2 x foo} assert_error "ERR*wrong kind*" {r smove myset2 x foo}
} }
test "SMOVE with identical source and destination" {
r del set
r sadd set a b c
r smove set set b
lsort [r smembers set]
} {a b c}
tags {slow} { tags {slow} {
test {intsets implementation stress testing} { test {intsets implementation stress testing} {
for {set j 0} {$j < 20} {incr j} { for {set j 0} {$j < 20} {incr j} {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment