summary refs log tree commit diff stats
path: root/tests/stdlib/thashes.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/thashes.nim')
-rw-r--r--tests/stdlib/thashes.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stdlib/thashes.nim b/tests/stdlib/thashes.nim
index 6b5e055b4..b6fbbbdb7 100644
--- a/tests/stdlib/thashes.nim
+++ b/tests/stdlib/thashes.nim
@@ -29,6 +29,9 @@ block hashes:
     const wy123 = hashWangYi1(123)
     doAssert wy123 != 0
     doAssert hashWangYi1(123) == wy123
+    const wyNeg123 = hashWangYi1(-123)
+    doAssert wyNeg123 != 0
+    doAssert hashWangYi1(-123) == wyNeg123
 
 
   # "hashIdentity value incorrect at 456"