diff --git a/tests/golden_tests/compile_file/def_pat_unscoped.bend b/tests/golden_tests/compile_file/def_pat_unscoped.bend new file mode 100644 index 00000000..37476696 --- /dev/null +++ b/tests/golden_tests/compile_file/def_pat_unscoped.bend @@ -0,0 +1,3 @@ +add $a b = (+ $a b) + +main = (add 9 4) diff --git a/tests/snapshots/compile_file__def_pat_unscoped.bend.snap b/tests/snapshots/compile_file__def_pat_unscoped.bend.snap new file mode 100644 index 00000000..ad2abaad --- /dev/null +++ b/tests/snapshots/compile_file__def_pat_unscoped.bend.snap @@ -0,0 +1,8 @@ +--- +source: tests/golden_tests.rs +input_file: tests/golden_tests/compile_file/def_pat_unscoped.bend +--- +@add = ($([+] $(a b)) (a b)) + +@main = a + & @add ~ (9 (4 a))