mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Add regression test for HINCRBYFLOAT formatting change.
This test was kindly provided by Jan-Erik Rediger (@badboy here on Github) that discovered the issue. See issue #2846.
This commit is contained in:
parent
de776a402f
commit
f6255703b0
@ -515,4 +515,11 @@ start_server {tags {"hash"}} {
|
|||||||
assert {[r object encoding myhash] eq {hashtable}}
|
assert {[r object encoding myhash] eq {hashtable}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test {Test HINCRBYFLOAT for correct float representation (issue #2846)} {
|
||||||
|
r del myhash
|
||||||
|
assert {[r hincrbyfloat myhash float 1.23] eq {1.23}}
|
||||||
|
assert {[r hincrbyfloat myhash float 0.77] eq {2}}
|
||||||
|
assert {[r hincrbyfloat myhash float -0.1] eq {1.9}}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user