From bd478590fab1a4e5417828961f67ae2e568d0f14 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 11 May 2013 20:35:56 +0200 Subject: [PATCH] Make that test macro more lispy --- tests/native_tests/native_macros.hy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/native_tests/native_macros.hy b/tests/native_tests/native_macros.hy index 7d4789a..e978a75 100644 --- a/tests/native_tests/native_macros.hy +++ b/tests/native_tests/native_macros.hy @@ -2,7 +2,7 @@ "NATIVE: test stararged native macros" (defmacro rev [&rest body] "Execute the `body` statements in reverse" - (+ (quote (do)) (list (reversed body)))) + (quasiquote (do (unquote-splice (list (reversed body))))))) (setv x []) (rev (.append x 1) (.append x 2) (.append x 3))