Permalink
Browse files

Variadic SADD tests

  • Loading branch information...
1 parent 616da65 commit 1ecfcb93809a887c601cc17b9ba51f2e98e07f2b @antirez committed Apr 15, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/unit/type/set.tcl
View
@@ -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 }

0 comments on commit 1ecfcb9

Please sign in to comment.