diff options
author | Miran <narimiran@disroot.org> | 2020-02-07 22:04:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 22:04:08 +0100 |
commit | f3117d350ea245769d60a80b2d12b062cff4b8ff (patch) | |
tree | 805ddf0c96d36d4f7797d77819ef975314dd8b6b /lib | |
parent | 78b15de3044feb4ac08fd5784714fac4d470e82b (diff) | |
download | Nim-f3117d350ea245769d60a80b2d12b062cff4b8ff.tar.gz |
fix #6736: templates in unittest now show actual value (#13354)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/unittest.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim index c50ef0b1b..ee2c5fe22 100644 --- a/lib/pure/unittest.nim +++ b/lib/pure/unittest.nim @@ -631,7 +631,7 @@ macro check*(conditions: untyped): untyped = var counter = 0 - if exp[0].kind == nnkIdent and + if exp[0].kind in {nnkIdent, nnkOpenSymChoice, nnkClosedSymChoice, nnkSym} and $exp[0] in ["not", "in", "notin", "==", "<=", ">=", "<", ">", "!=", "is", "isnot"]: |