diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-16 05:21:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 14:21:26 +0200 |
commit | d19e4310dc16cae2329c55dfa8feb94e0981dc0c (patch) | |
tree | 0fd3df253460a37aef246621538e50c351a5a0f3 /tests/stdlib/tstrutils.nim | |
parent | 611b88763f8ec88889b14da31ff220cb47789846 (diff) | |
download | Nim-d19e4310dc16cae2329c55dfa8feb94e0981dc0c.tar.gz |
std/hashes: hash(ref|ptr|pointer) + other improvements (#17731)
Diffstat (limited to 'tests/stdlib/tstrutils.nim')
-rw-r--r-- | tests/stdlib/tstrutils.nim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/stdlib/tstrutils.nim b/tests/stdlib/tstrutils.nim index a6248d1e3..771dddcaf 100644 --- a/tests/stdlib/tstrutils.nim +++ b/tests/stdlib/tstrutils.nim @@ -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" |