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
d3473481
Commit
d3473481
authored
Feb 16, 2012
by
antirez
Browse files
Issue #330 regression test.
parent
a400a9b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/hash.tcl
View file @
d3473481
...
@@ -318,6 +318,14 @@ start_server {tags {"hash"}} {
...
@@ -318,6 +318,14 @@ start_server {tags {"hash"}} {
lappend rv
[
string match
"ERR*not an integer*"
$bigerr
]
lappend rv
[
string match
"ERR*not an integer*"
$bigerr
]
}
{
1 1
}
}
{
1 1
}
test
{
HINCRBY can detect overflows
}
{
set e
{}
r hset hash n -9223372036854775484
assert
{[
r hincrby hash n -1
]
== -9223372036854775485
}
catch
{
r hincrby hash n -10000
}
e
set e
}
{
*overflow*
}
test
{
HINCRBYFLOAT against non existing database key
}
{
test
{
HINCRBYFLOAT against non existing database key
}
{
r del htest
r del htest
list
[
r hincrbyfloat htest foo 2.5
]
list
[
r hincrbyfloat htest foo 2.5
]
...
...
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