valgrind handles floating point numbers differently for some reason, so using "simpler" numbers to make tests happy.

This commit is contained in:
antirez 2011-11-16 13:30:43 +01:00
parent 32adb53156
commit cd4aba36cd
2 changed files with 5 additions and 5 deletions

View File

@ -213,8 +213,8 @@ start_server {tags {"basic"}} {
test {INCRBYFLOAT decrement} {
r set foo 1
r incrbyfloat foo -1.256
} {-0.256}
r incrbyfloat foo -1.1
} {-0.1}
test "SETNX target key missing" {
r del novar

View File

@ -335,11 +335,11 @@ start_server {tags {"hash"}} {
test {HINCRBYFLOAT against hash key created by hincrby itself} {
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 hincrbyfloat bighash tmp 3.1]
lappend rv [r hincrbyfloat bighash tmp 3.5]
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} {
r hset smallhash tmp 100