From ae389b9480d46091bfd9b6843aebdc48aa577c16 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Mon, 28 Aug 2023 22:13:21 +0300 Subject: Update fennel-test, and add test runner script --- tests/fn.fnl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/fn.fnl') diff --git a/tests/fn.fnl b/tests/fn.fnl index eeee017..886c763 100644 --- a/tests/fn.fnl +++ b/tests/fn.fnl @@ -1,13 +1,13 @@ -(require-macros :fennel-test) +(require-macros (doto :fennel-test.fennel-test require)) (require-macros (doto :cljlib require)) (local (meta? fennel) (pcall require :fennel)) (fn meta [x] (fennel.metadata:get x)) -(deftest test-fn* +(deftest test-defn (when meta? - (testing "fn* meta" + (testing "defn meta" (defn f "single arity" [x] x) @@ -66,7 +66,7 @@ "([[{:a [a b c]}] d e])"]} (meta f))) - (testing "defn anonymous calls" + (testing "fn* anonymous calls" (assert-eq ((fn* [])) (values)) (assert-eq ((fn* [] nil)) nil) (assert-eq ((fn* [x] x) 5) 5) -- cgit v1.2.3