]> www.git.momoyon.org Git - lang.git/commitdiff
[tests] New test funcall_parsing.momo
authormomoyon <momoyon@momoyon.org>
Mon, 12 May 2025 13:18:31 +0000 (18:18 +0500)
committermomoyon <momoyon@momoyon.org>
Mon, 12 May 2025 13:18:31 +0000 (18:18 +0500)
tests/.funcall_parsing.build.code.expected [new file with mode: 0644]
tests/.funcall_parsing.build.err.expected [new file with mode: 0644]
tests/.funcall_parsing.build.in.expected [new file with mode: 0644]
tests/.funcall_parsing.build.out.expected [new file with mode: 0644]
tests/.funcall_parsing.code.expected [new file with mode: 0644]
tests/.funcall_parsing.err.expected [new file with mode: 0644]
tests/.funcall_parsing.in.expected [new file with mode: 0644]
tests/.funcall_parsing.out.expected [new file with mode: 0644]
tests/funcall_parsing.momo [new file with mode: 0644]

diff --git a/tests/.funcall_parsing.build.code.expected b/tests/.funcall_parsing.build.code.expected
new file mode 100644 (file)
index 0000000..c227083
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/tests/.funcall_parsing.build.in.expected b/tests/.funcall_parsing.build.in.expected
new file mode 100644 (file)
index 0000000..c4d955f
--- /dev/null
@@ -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 (file)
index 0000000..1bfcdeb
--- /dev/null
@@ -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 (file)
index 0000000..d7d17fc
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/tests/.funcall_parsing.in.expected b/tests/.funcall_parsing.in.expected
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/.funcall_parsing.out.expected b/tests/.funcall_parsing.out.expected
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/funcall_parsing.momo b/tests/funcall_parsing.momo
new file mode 100644 (file)
index 0000000..831003c
--- /dev/null
@@ -0,0 +1,8 @@
+funcall();
+
+funcall(1);
+
+foo(bar,
+    baz, 1, 2, 3);
+
+a(b(c(bar, baz)));