summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-04-19 17:37:03 +0200
committerantirez <antirez@gmail.com>2011-04-19 17:37:03 +0200
commitb3a96d454e9a4a7f8d88bb0e6f301427b5cfaa3e (patch)
treecd2d71e9bbcf642934ff73f4bb3a23ee12e3ab12 /tests
parent64a13a36e685c318319a70b775f91f2c34bcc34f (diff)
downloadredis-b3a96d454e9a4a7f8d88bb0e6f301427b5cfaa3e.tar.gz
Variadic SREM
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/type/set.tcl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/type/set.tcl b/tests/unit/type/set.tcl
index ef7d668cc..1a37ed616 100644
--- a/tests/unit/type/set.tcl
+++ b/tests/unit/type/set.tcl
@@ -97,6 +97,14 @@ start_server {
assert_equal {3 5} [lsort [r smembers myset]]
}
+ test {SREM with multiple arguments} {
+ r del myset
+ r sadd myset a b c d
+ assert_equal 0 [r srem myset k k k]
+ assert_equal 2 [r srem myset b d x y]
+ lsort [r smembers myset]
+ } {a c}
+
foreach {type} {hashtable intset} {
for {set i 1} {$i <= 5} {incr i} {
r del [format "set%d" $i]