Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
271f0878
Commit
271f0878
authored
Apr 15, 2011
by
antirez
Browse files
Variadic SADD tests
parent
22f294d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/set.tcl
View file @
271f0878
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment