From: momoyon <momoyon@momoyon.org>
Date: Mon, 12 May 2025 13:18:31 +0000 (+0500)
Subject: [tests] New test funcall_parsing.momo
X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;h=7cf68a4dd97f9cc34f44424061f734dcffa94b1f;p=lang.git

[tests] New test funcall_parsing.momo
---

diff --git a/tests/.funcall_parsing.build.code.expected b/tests/.funcall_parsing.build.code.expected
new file mode 100644
index 0000000..c227083
--- /dev/null
+++ b/tests/.funcall_parsing.build.code.expected
@@ -0,0 +1 @@
+0
\ No newline at end of file
diff --git a/tests/.funcall_parsing.build.err.expected b/tests/.funcall_parsing.build.err.expected
new file mode 100644
index 0000000..e69de29
diff --git a/tests/.funcall_parsing.build.in.expected b/tests/.funcall_parsing.build.in.expected
new file mode 100644
index 0000000..c4d955f
--- /dev/null
+++ b/tests/.funcall_parsing.build.in.expected
@@ -0,0 +1 @@
+dump_ast
\ No newline at end of file
diff --git a/tests/.funcall_parsing.build.out.expected b/tests/.funcall_parsing.build.out.expected
new file mode 100644
index 0000000..1bfcdeb
--- /dev/null
+++ b/tests/.funcall_parsing.build.out.expected
@@ -0,0 +1,4 @@
+funcall_parsing.momo:1:0 [FUNCALL] 'funcall()'
+funcall_parsing.momo:3:0 [FUNCALL] 'funcall(1)'
+funcall_parsing.momo:5:0 [FUNCALL] 'foo('bar': ???, 'baz': ???, 1, 2, 3)'
+funcall_parsing.momo:8:0 [FUNCALL] 'a(b(c('bar': ???, 'baz': ???)))'
diff --git a/tests/.funcall_parsing.code.expected b/tests/.funcall_parsing.code.expected
new file mode 100644
index 0000000..d7d17fc
--- /dev/null
+++ b/tests/.funcall_parsing.code.expected
@@ -0,0 +1 @@
+-1
\ No newline at end of file
diff --git a/tests/.funcall_parsing.err.expected b/tests/.funcall_parsing.err.expected
new file mode 100644
index 0000000..e69de29
diff --git a/tests/.funcall_parsing.in.expected b/tests/.funcall_parsing.in.expected
new file mode 100644
index 0000000..e69de29
diff --git a/tests/.funcall_parsing.out.expected b/tests/.funcall_parsing.out.expected
new file mode 100644
index 0000000..e69de29
diff --git a/tests/funcall_parsing.momo b/tests/funcall_parsing.momo
new file mode 100644
index 0000000..831003c
--- /dev/null
+++ b/tests/funcall_parsing.momo
@@ -0,0 +1,8 @@
+funcall();
+
+funcall(1);
+
+foo(bar,
+    baz, 1, 2, 3);
+
+a(b(c(bar, baz)));