Skip to content

Commit

Permalink
Variadic SADD tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jun 20, 2011
1 parent 616da65 commit 1ecfcb9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/type/set.tcl
Expand Up @@ -59,6 +59,13 @@ start_server {
assert_encoding hashtable myset
}

test {Variadic SADD} {
r del myset
assert_equal 3 [r sadd myset a b c]
assert_equal 2 [r sadd myset A a b c B]
assert_equal [lsort {A a b c B}] [lsort [r smembers myset]]
}

test "Set encoding after DEBUG RELOAD" {
r del myintset myhashset mylargeintset
for {set i 0} {$i < 100} {incr i} { r sadd myintset $i }
Expand Down

0 comments on commit 1ecfcb9

Please sign in to comment.