summary refs log tree commit diff stats
path: root/testament
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-04-16 05:21:26 -0700
committerGitHub <noreply@github.com>2021-04-16 14:21:26 +0200
commitd19e4310dc16cae2329c55dfa8feb94e0981dc0c (patch)
tree0fd3df253460a37aef246621538e50c351a5a0f3 /testament
parent611b88763f8ec88889b14da31ff220cb47789846 (diff)
downloadNim-d19e4310dc16cae2329c55dfa8feb94e0981dc0c.tar.gz
std/hashes: hash(ref|ptr|pointer) + other improvements (#17731)
Diffstat (limited to 'testament')
-rw-r--r--testament/lib/stdtest/testutils.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/testament/lib/stdtest/testutils.nim b/testament/lib/stdtest/testutils.nim
index abffff24c..35423de17 100644
--- a/testament/lib/stdtest/testutils.nim
+++ b/testament/lib/stdtest/testutils.nim
@@ -85,3 +85,7 @@ template accept*(a) =
 
 template reject*(a) =
   doAssert not compiles(a)
+
+template disableVm*(body) =
+  when nimvm: discard
+  else: body