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
f800942f
Commit
f800942f
authored
Apr 18, 2012
by
antirez
Browse files
Test SINTER with non existing key.
parent
88f77a2b
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/type/set.tcl
View file @
f800942f
...
...
@@ -216,6 +216,13 @@ start_server {
assert_error
"ERR*wrong kind*"
{
r sunion key1 noset
}
}
test
"SINTER should handle non existing key as empty"
{
r del set1 set2 set3
r sadd set1 a b c
r sadd set2 b c d
r sinter set1 set2 set3
}
{}
test
"SINTERSTORE against non existing keys should delete dstkey"
{
r set setres xxx
assert_equal 0
[
r sinterstore setres foo111 bar222
]
...
...
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