summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2015-05-15 17:36:18 +0200
committerSalvatore Sanfilippo <antirez@gmail.com>2015-05-15 17:36:18 +0200
commitcb9a5a78219db209a7b6a4b368ce9bf87d99a7d5 (patch)
tree334fa352a10c437231dc6c0dcd62a6651a19e251 /tests
parent7f7ddbba3ce01101dceebe5ffaec054458fb2b00 (diff)
parent626b4f69078276e35ed947e0d4ebd704e7f09992 (diff)
downloadredis-cb9a5a78219db209a7b6a4b368ce9bf87d99a7d5.tar.gz
Merge pull request #2529 from gnethercutt/issue_2517
Issue #2517, smove contract violation
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/type/set.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/type/set.tcl b/tests/unit/type/set.tcl
index a9a3d0835..7b467f1c4 100644
--- a/tests/unit/type/set.tcl
+++ b/tests/unit/type/set.tcl
@@ -519,6 +519,7 @@ start_server {
test "SMOVE non existing key" {
setup_move
assert_equal 0 [r smove myset1 myset2 foo]
+ assert_equal 0 [r smove myset1 myset1 foo]
assert_equal {1 a b} [lsort [r smembers myset1]]
assert_equal {2 3 4} [lsort [r smembers myset2]]
}