Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add testcase for #15937 #15933

Merged
merged 5 commits into from
Dec 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/stdlib/thashes.nim
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
discard """
targets: '''c c++ js'''
"""

import hashes

block hashes:
Expand All @@ -13,8 +17,10 @@ block hashes:
# "VM and runtime should make the same hash value (hashWangYi1)"
block:
const wy123 = hashWangYi1(123)
ringabout marked this conversation as resolved.
Show resolved Hide resolved
doAssert wy123 != 0
doAssert hashWangYi1(123) == wy123


# "hashIdentity value incorrect at 456"
block:
doAssert hashIdentity(456) == 456
Expand Down