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
39b49bca
Commit
39b49bca
authored
May 29, 2015
by
antirez
Browse files
Test: ZADD CH tests
parent
d8a8dca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/zset.tcl
View file @
39b49bca
...
@@ -114,6 +114,13 @@ start_server {tags {"zset"}} {
...
@@ -114,6 +114,13 @@ start_server {tags {"zset"}} {
set err
set err
}
{
ERR*
}
}
{
ERR*
}
test
"ZADD CH option changes return value to all changed elements"
{
r del ztmp
r zadd ztmp 10 x 20 y 30 z
assert
{[
r zadd ztmp 11 x 21 y 30 z
]
== 0
}
assert
{[
r zadd ztmp ch 12 x 22 y 30 z
]
== 2
}
}
test
"ZINCRBY calls leading to NaN result in error"
{
test
"ZINCRBY calls leading to NaN result in error"
{
r zincrby myzset +inf abc
r zincrby myzset +inf abc
assert_error
"*NaN*"
{
r zincrby myzset -inf abc
}
assert_error
"*NaN*"
{
r zincrby myzset -inf abc
}
...
...
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