make tests green
This commit is contained in:
parent
bbb0fd4eb7
commit
d8fde9daba
6 changed files with 17 additions and 17 deletions
|
|
@ -3,7 +3,7 @@ discard """
|
|||
"""
|
||||
|
||||
import tables
|
||||
from hashes import THash
|
||||
from hashes import Hash
|
||||
|
||||
# Test with int
|
||||
block:
|
||||
|
|
@ -66,7 +66,7 @@ block:
|
|||
# The same test with a custom hash(s: string) does
|
||||
# work though.
|
||||
block:
|
||||
proc hash(x: int): THash {.inline.} =
|
||||
proc hash(x: int): Hash {.inline.} =
|
||||
echo "overloaded hash"
|
||||
result = x
|
||||
var t = initTable[int, int]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue