From b1ba58f3417728dfb768890eb1075c90a028d63a Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 13 Dec 2013 11:37:03 +0100 Subject: [PATCH] SDIFF iterator misuse bug regression test added. See commit c00453d for more info about the bug. --- tests/unit/type/set.tcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/type/set.tcl b/tests/unit/type/set.tcl index a77759e5..162de0af 100644 --- a/tests/unit/type/set.tcl +++ b/tests/unit/type/set.tcl @@ -214,6 +214,12 @@ start_server { r sdiff set1 set2 set3 } {} + test "SDIFF with same set two times" { + r del set1 + r sadd set1 a b c 1 2 3 4 5 6 + r sdiff set1 set1 + } {} + test "SDIFF fuzzing" { for {set j 0} {$j < 100} {incr j} { unset -nocomplain s