Skip to content

Commit

Permalink
add testcase for #15937 (#15933)
Browse files Browse the repository at this point in the history
* test for issue #15624 and PR #15915 for patch #13823

* Update thashes.nim

no need mention PR #15915, fixed in #15937

* rebase to devel(issue maybe fixed), ignore ouputs

* Apply suggestions from code review

Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
  • Loading branch information
bung87 and ringabout authored Dec 13, 2020
1 parent 5a58440 commit 5514b29
Showing 1 changed file with 6 additions and 0 deletions.
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)
doAssert wy123 != 0
doAssert hashWangYi1(123) == wy123


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

0 comments on commit 5514b29

Please sign in to comment.