summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tests/run/thashes.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run/thashes.nim b/tests/run/thashes.nim
index 2b418c4cd..c442b43fb 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)