From 88f77a2b7eb7b922a2cba57c0e01c9ecb53c0109 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 18 Apr 2012 18:00:12 +0200 Subject: [PATCH] Added an SMOVE test where src and dest key are the same. --- tests/unit/type/set.tcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit/type/set.tcl b/tests/unit/type/set.tcl index bdd1f9bf..45239aa9 100644 --- a/tests/unit/type/set.tcl +++ b/tests/unit/type/set.tcl @@ -317,6 +317,13 @@ start_server { 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} { test {intsets implementation stress testing} { for {set j 0} {$j < 20} {incr j} { -- 2.45.2