Commit 672c605570cf7b333e5b8645617a76f6745315bc

Thomas de Grivel 2024-02-17T10:32:31

test macros

diff --git a/test/ic3/macro.in b/test/ic3/macro.in
new file mode 100644
index 0000000..1cb643a
--- /dev/null
+++ b/test/ic3/macro.in
@@ -0,0 +1,8 @@
+quote m = macro (name) { quote "Hello, " + (unquote name) + " !" }
+m = macro (name) { quote "Hello, " + (unquote name) + " !" }
+quote m("Terrence")
+m("Terrence")
+quote n = "Phillip"
+n = "Phillip"
+quote m(n)
+m(n)
diff --git a/test/ic3/macro.out.expected b/test/ic3/macro.out.expected
new file mode 100644
index 0000000..b8e2273
--- /dev/null
+++ b/test/ic3/macro.out.expected
@@ -0,0 +1,8 @@
+m = macro (name) { quote "Hello, " + (unquote name) + " !" }
+macro (name) { quote "Hello, " + (unquote name) + " !" }
+m("Terrence")
+"Hello, Terrence !"
+n = "Phillip"
+"Phillip"
+m(n)
+"Hello, Phillip !"
diff --git a/test/ic3/macro.ret.expected b/test/ic3/macro.ret.expected
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/ic3/macro.ret.expected
@@ -0,0 +1 @@
+0