branch: elpa/macrostep
commit 3f815fb51ae63f89aa06be349b64222e6badd379
Author: joddie <[email protected]>
Commit: joddie <[email protected]>

    Test for normal defmacro expansion
---
 macrostep-test.el | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/macrostep-test.el b/macrostep-test.el
index 03cd923..70d3777 100644
--- a/macrostep-test.el
+++ b/macrostep-test.el
@@ -44,6 +44,19 @@
                       ,expansion)))
          (macrostep-collapse-all)))))
 
+(ert-deftest macrostep-expand-defmacro ()
+  (defmacro macrostep-dummy-macro (&rest args)
+    `(expansion of ,@args))
+  (macrostep-with-text
+   '(progn
+     (first body form)
+     (second body form)
+     (macrostep-dummy-macro (first (argument)) second (third argument))
+     (remaining body forms))
+   (macrostep-should-expand
+    '(macrostep-dummy-macro (first (argument)) second (third argument))
+    '(expansion of (first (argument)) second (third argument)))))
+
 (ert-deftest macrostep-expand-macrolet ()
   (macrostep-with-text
       '(macrolet

Reply via email to