]> git.saurik.com Git - redis.git/commitdiff
Test SDIFF with first set empty.
authorantirez <antirez@gmail.com>
Wed, 18 Apr 2012 16:13:31 +0000 (18:13 +0200)
committerantirez <antirez@gmail.com>
Wed, 18 Apr 2012 19:23:35 +0000 (21:23 +0200)
tests/unit/type/set.tcl

index ec412b40902e499d95429a3aeadd21358e015d6a..f4f2837351fc9da650363d83136e15be89fb1668 100644 (file)
@@ -206,6 +206,13 @@ start_server {
         }
     }
 
+    test "SDIFF with first set empty" {
+        r del set1 set2 set3
+        r sadd set2 1 2 3 4
+        r sadd set3 a b c d
+        r sdiff set1 set2 set3
+    } {}
+
     test "SINTER against non-set should throw error" {
         r set key1 x
         assert_error "ERR*wrong kind*" {r sinter key1 noset}