From 5c45ae1f7b44c01b3cc7240f2529ebcd932a92ef Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 18 Apr 2012 18:13:31 +0200 Subject: [PATCH] Test SDIFF with first set empty. --- 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 ec412b40..f4f28373 100644 --- a/tests/unit/type/set.tcl +++ b/tests/unit/type/set.tcl @@ -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} -- GitLab