Test SDIFF with first set empty.

This commit is contained in:
antirez 2012-04-18 18:13:31 +02:00
parent 4264459141
commit cddfd67ed4

View 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" { test "SINTER against non-set should throw error" {
r set key1 x r set key1 x
assert_error "ERR*wrong kind*" {r sinter key1 noset} assert_error "ERR*wrong kind*" {r sinter key1 noset}