mirror of
https://github.com/fluencelabs/redis
synced 2025-06-25 06:51:32 +00:00
Make sure Redis does not reply with negative zero
This commit is contained in:
@ -151,4 +151,10 @@ start_server {tags {"incr"}} {
|
||||
catch {r incrbyfloat foo 1} err
|
||||
format $err
|
||||
} {ERR*valid*}
|
||||
|
||||
test {No negative zero} {
|
||||
r incrbyfloat foo [expr double(1)/41]
|
||||
r incrbyfloat foo [expr double(-1)/41]
|
||||
r get foo
|
||||
} {0}
|
||||
}
|
||||
|
Reference in New Issue
Block a user