From dce69a2b24a7c9e1fbc6df5993c65f831957543e Mon Sep 17 00:00:00 2001 From: XeroOl Date: Wed, 13 Aug 2025 13:00:48 -0500 Subject: [PATCH] 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. --- test/hover.fnl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/hover.fnl b/test/hover.fnl index 888c891..818e56a 100644 --- a/test/hover.fnl +++ b/test/hover.fnl @@ -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 []