Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1ecfcb93
Commit
1ecfcb93
authored
Apr 15, 2011
by
antirez
Browse files
Variadic SADD tests
parent
616da658
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/type/set.tcl
View file @
1ecfcb93
...
@@ -59,6 +59,13 @@ start_server {
...
@@ -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
}
...
...
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