std/hashes: hash(ref|ptr|pointer) + other improvements (#17731)
This commit is contained in:
parent
611b88763f
commit
d19e4310dc
5 changed files with 96 additions and 36 deletions
|
|
@ -3,7 +3,7 @@ discard """
|
|||
"""
|
||||
|
||||
import std/strutils
|
||||
|
||||
from stdtest/testutils import disableVm
|
||||
# xxx each instance of `disableVm` and `when not defined js:` should eventually be fixed
|
||||
|
||||
template rejectParse(e) =
|
||||
|
|
@ -12,10 +12,6 @@ template rejectParse(e) =
|
|||
raise newException(AssertionDefect, "This was supposed to fail: $#!" % astToStr(e))
|
||||
except ValueError: discard
|
||||
|
||||
template disableVm(body) =
|
||||
when nimvm: discard
|
||||
else: body
|
||||
|
||||
template main() =
|
||||
block: # strip
|
||||
doAssert strip(" ha ") == "ha"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue