diff --git a/tests/stdlib/thashes.nim b/tests/stdlib/thashes.nim index d155111ffc8a6..92154825e7633 100644 --- a/tests/stdlib/thashes.nim +++ b/tests/stdlib/thashes.nim @@ -1,3 +1,7 @@ +discard """ + targets: '''c c++ js''' +""" + import hashes block hashes: @@ -13,8 +17,10 @@ block hashes: # "VM and runtime should make the same hash value (hashWangYi1)" block: const wy123 = hashWangYi1(123) + doAssert wy123 != 0 doAssert hashWangYi1(123) == wy123 + # "hashIdentity value incorrect at 456" block: doAssert hashIdentity(456) == 456