diff --git a/tests/run/thashes.nim b/tests/run/thashes.nim index 2b418c4cdc..c442b43fba 100644 --- a/tests/run/thashes.nim +++ b/tests/run/thashes.nim @@ -4,4 +4,5 @@ import hashes suite "hashes": suite "hashing": test "0.0 and -0.0 should have the same hash value": - check hash(0.0) == hash(-0.0) \ No newline at end of file + var dummy = 0.0 + check hash(dummy) == hash(-dummy)