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
1101b515
Commit
1101b515
authored
May 02, 2016
by
antirez
Browse files
Test ZINCRBY return value.
parent
bbf93108
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/type/zset.tcl
View file @
1101b515
...
@@ -290,6 +290,12 @@ start_server {tags {"zset"}} {
...
@@ -290,6 +290,12 @@ start_server {tags {"zset"}} {
assert_equal 6
[
r zscore zset bar
]
assert_equal 6
[
r zscore zset bar
]
}
}
test
"ZINCRBY return value"
{
r del ztmp
set retval
[
r zincrby ztmp 1.0 x
]
assert
{
$retval
== 1.0
}
}
proc create_default_zset
{}
{
proc create_default_zset
{}
{
create_zset zset
{
-inf a 1 b 2 c 3 d 4 e 5 f +inf g
}
create_zset zset
{
-inf a 1 b 2 c 3 d 4 e 5 f +inf g
}
}
}
...
...
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