From e93c5a635c75231ab6b9cf220b9b9c40f84c27fc Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 14 Aug 2024 22:07:51 +0800 Subject: [PATCH] fixes tests --- tests/macros/tdumpast2.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/macros/tdumpast2.nim b/tests/macros/tdumpast2.nim index c4c591b2ab..ed6327b34a 100644 --- a/tests/macros/tdumpast2.nim +++ b/tests/macros/tdumpast2.nim @@ -11,8 +11,7 @@ proc dumpit(n: NimNode): string {.compileTime.} = of nnkNilLit: add(result, "nil") of nnkCharLit..nnkInt64Lit: add(result, $n.intVal) of nnkFloatLit..nnkFloat64Lit: add(result, $n.floatVal) - of nnkStrLit..nnkTripleStrLit: add(result, $n.strVal) - of nnkIdent: add(result, $n.ident) + of nnkStrLit..nnkTripleStrLit, nnkIdent: add(result, $n.strVal) of nnkSym, nnkNone: assert false else: add(result, dumpit(n[0]))