summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Benoish <guy.benoish@redislabs.com>2020-04-02 18:41:29 +0300
committerantirez <antirez@gmail.com>2020-04-07 16:52:04 +0200
commit024c380b9da02bc4112822c0f5f9ac1388b4205b (patch)
treea4d5d7a75b6a430761daf55b828bb10044ffc991
parenta38ff404bdc3ef05a4c06c38c4eb604ff2d03479 (diff)
downloadredis-024c380b9da02bc4112822c0f5f9ac1388b4205b.tar.gz
Fix no-negative-zero test
-rw-r--r--tests/unit/type/incr.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/type/incr.tcl b/tests/unit/type/incr.tcl
index 63bf2e116..b7a135203 100644
--- a/tests/unit/type/incr.tcl
+++ b/tests/unit/type/incr.tcl
@@ -153,6 +153,7 @@ start_server {tags {"incr"}} {
} {ERR*valid*}
test {No negative zero} {
+ r del foo
r incrbyfloat foo [expr double(1)/41]
r incrbyfloat foo [expr double(-1)/41]
r get foo