mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
Variadic SADD tests
This commit is contained in:
parent
22f294d24a
commit
271f087842
@ -59,6 +59,13 @@ start_server {
|
|||||||
assert_encoding hashtable myset
|
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" {
|
test "Set encoding after DEBUG RELOAD" {
|
||||||
r del myintset myhashset mylargeintset
|
r del myintset myhashset mylargeintset
|
||||||
for {set i 0} {$i < 100} {incr i} { r sadd myintset $i }
|
for {set i 0} {$i < 100} {incr i} { r sadd myintset $i }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user