test that functions don't evaluate to themselves

There was a bug at some point that fennel assumed a function call would
evaluate to the function being called, which is not true.
This commit is contained in:
XeroOl 2025-08-13 13:00:48 -05:00
parent 3c1e01da6f
commit dce69a2b24

View File

@ -111,6 +111,9 @@ except that it sets a new message handler `msgh`.")
(check "(λ foo| [{:list [a b c] :table {: d : e : f}}]
:body)"
"```fnl\n(foo {:list [a b c] :table {: d : e : f}})\n```")
(check "(local x| print)" #($:find "print"))
(check "(local x| (print))" nil)
nil)
(fn test-multisym []