Commit cd4aba36 authored by antirez's avatar antirez
Browse files

valgrind handles floating point numbers differently for some reason, so using...

valgrind handles floating point numbers differently for some reason, so using "simpler" numbers to make tests happy.
parent 32adb531
...@@ -213,8 +213,8 @@ start_server {tags {"basic"}} { ...@@ -213,8 +213,8 @@ start_server {tags {"basic"}} {
test {INCRBYFLOAT decrement} { test {INCRBYFLOAT decrement} {
r set foo 1 r set foo 1
r incrbyfloat foo -1.256 r incrbyfloat foo -1.1
} {-0.256} } {-0.1}
test "SETNX target key missing" { test "SETNX target key missing" {
r del novar r del novar
......
...@@ -335,11 +335,11 @@ start_server {tags {"hash"}} { ...@@ -335,11 +335,11 @@ start_server {tags {"hash"}} {
test {HINCRBYFLOAT against hash key created by hincrby itself} { test {HINCRBYFLOAT against hash key created by hincrby itself} {
set rv {} set rv {}
lappend rv [r hincrbyfloat smallhash tmp 3.1] lappend rv [r hincrbyfloat smallhash tmp 3.5]
lappend rv [r hget smallhash tmp] lappend rv [r hget smallhash tmp]
lappend rv [r hincrbyfloat bighash tmp 3.1] lappend rv [r hincrbyfloat bighash tmp 3.5]
lappend rv [r hget bighash tmp] lappend rv [r hget bighash tmp]
} {5.6 5.6 5.6 5.6} } {6 6 6 6}
test {HINCRBYFLOAT against hash key originally set with HSET} { test {HINCRBYFLOAT against hash key originally set with HSET} {
r hset smallhash tmp 100 r hset smallhash tmp 100
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment