From e4dd661631e109e8f0eab3ab0ce117464acde7a0 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Fri, 13 Nov 2020 23:04:25 +0300 Subject: fix(core): revert fn* to defn change --- tests/fn.fnl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/fn.fnl') diff --git a/tests/fn.fnl b/tests/fn.fnl index c7a3aa9..e0af7cb 100644 --- a/tests/fn.fnl +++ b/tests/fn.fnl @@ -1,21 +1,21 @@ (require-macros :tests.test) (require-macros :cljlib-macros) -(deftest defn - (testing "defn meta" - (defn f +(deftest fn* + (testing "fn* meta" + (fn* f "docstring" [x] x) (assert-eq (meta f) (when-meta {:fnl/docstring "docstring" :fnl/arglist ["x"]})) - (defn f + (fn* f "docstring" ([x] x)) (assert-eq (meta f) (when-meta {:fnl/docstring "docstring" :fnl/arglist ["x"]})) - (defn f + (fn* f "docstring" ([x] x) ([x y] (+ x y))) @@ -23,7 +23,7 @@ :fnl/arglist ["\n [x]" "\n [x y]"]})) - (defn f + (fn* f "docstring" ([x] x) ([x y] (+ x y)) -- cgit v1.2.3