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
88f77a2b
Commit
88f77a2b
authored
Apr 18, 2012
by
antirez
Browse files
Added an SMOVE test where src and dest key are the same.
parent
e51a218a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/set.tcl
View file @
88f77a2b
...
@@ -317,6 +317,13 @@ start_server {
...
@@ -317,6 +317,13 @@ start_server {
assert_error
"ERR*wrong kind*"
{
r smove myset2 x foo
}
assert_error
"ERR*wrong kind*"
{
r smove myset2 x foo
}
}
}
test
"SMOVE with identical source and destination"
{
r del set
r sadd set a b c
r smove set set b
lsort
[
r smembers set
]
}
{
a b c
}
tags
{
slow
}
{
tags
{
slow
}
{
test
{
intsets implementation stress testing
}
{
test
{
intsets implementation stress testing
}
{
for
{
set j 0
}
{
$j
< 20
}
{
incr j
}
{
for
{
set j 0
}
{
$j
< 20
}
{
incr j
}
{
...
...
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