Skip to content

Commit

Permalink
SDIFF iterator misuse bug regression test added.
Browse files Browse the repository at this point in the history
See commit c00453d for more info about the bug.
  • Loading branch information
antirez committed Dec 13, 2013
1 parent c00453d commit b1ba58f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/type/set.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1ba58f

Please sign in to comment.