From: antirez Date: Sat, 9 May 2009 10:32:29 +0000 (+0200) Subject: added tests for vararg DEL X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/cc582a77084840218c5cdcecb19be62f374f0a03 added tests for vararg DEL --- diff --git a/test-redis.tcl b/test-redis.tcl index 6eb1468c..9e69acda 100644 --- a/test-redis.tcl +++ b/test-redis.tcl @@ -65,6 +65,13 @@ proc main {server port} { $r get x } {} + test {Vararg DEL} { + $r set foo1 a + $r set foo2 b + $r set foo3 c + list [$r del foo1 foo2 foo3 foo4] [$r mget foo1 foo2 foo3] + } {3 {{} {} {}}} + test {KEYS with pattern} { foreach key {key_x key_y key_z foo_a foo_b foo_c} { $r set $key hello