From f800942f64ac10e4550d5f4e9f74e92e5724d339 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 18 Apr 2012 18:05:02 +0200 Subject: [PATCH 1/1] Test SINTER with non existing key. --- 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 45239aa9..e46784c8 100644 --- a/tests/unit/type/set.tcl +++ b/tests/unit/type/set.tcl @@ -216,6 +216,13 @@ start_server { assert_error "ERR*wrong kind*" {r sunion key1 noset} } + test "SINTER should handle non existing key as empty" { + r del set1 set2 set3 + r sadd set1 a b c + r sadd set2 b c d + r sinter set1 set2 set3 + } {} + test "SINTERSTORE against non existing keys should delete dstkey" { r set setres xxx assert_equal 0 [r sinterstore setres foo111 bar222] -- 2.47.2