summary refs log tree commit diff stats
path: root/tests/run/thashes.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/thashes.nim')
-rw-r--r--tests/run/thashes.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/thashes.nim b/tests/run/thashes.nim
new file mode 100644
index 000000000..c442b43fb
--- /dev/null
+++ b/tests/run/thashes.nim
@@ -0,0 +1,8 @@
+import unittest
+import hashes
+
+suite "hashes":
+  suite "hashing":
+    test "0.0 and -0.0 should have the same hash value":
+      var dummy = 0.0
+      check hash(dummy) == hash(-dummy)