* test for issue #15624 and PR #15915 for patch #13823 * Update thashes.nim no need mention PR #15915, fixed in https://github.com/nim-lang/Nim/pull/15937 * rebase to devel(issue maybe fixed), ignore ouputs * Apply suggestions from code review Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
This commit is contained in:
parent
5a58440ebe
commit
5514b299eb
1 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
discard """
|
||||||
|
targets: '''c c++ js'''
|
||||||
|
"""
|
||||||
|
|
||||||
import hashes
|
import hashes
|
||||||
|
|
||||||
block hashes:
|
block hashes:
|
||||||
|
|
@ -13,8 +17,10 @@ block hashes:
|
||||||
# "VM and runtime should make the same hash value (hashWangYi1)"
|
# "VM and runtime should make the same hash value (hashWangYi1)"
|
||||||
block:
|
block:
|
||||||
const wy123 = hashWangYi1(123)
|
const wy123 = hashWangYi1(123)
|
||||||
|
doAssert wy123 != 0
|
||||||
doAssert hashWangYi1(123) == wy123
|
doAssert hashWangYi1(123) == wy123
|
||||||
|
|
||||||
|
|
||||||
# "hashIdentity value incorrect at 456"
|
# "hashIdentity value incorrect at 456"
|
||||||
block:
|
block:
|
||||||
doAssert hashIdentity(456) == 456
|
doAssert hashIdentity(456) == 456
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue