From 5bf187555012925bbd464b86ca49f7bd37e2c51c Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Tue, 10 Nov 2020 23:26:08 +0300 Subject: feature(core): breaking change of project structure --- test/core.fnl | 5 ++--- test/fn.fnl | 3 +-- test/macros.fnl | 6 ++---- test/test.fnl | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/core.fnl b/test/core.fnl index 2a5e38f..6c705b6 100644 --- a/test/core.fnl +++ b/test/core.fnl @@ -1,5 +1,4 @@ -(require-macros :macros.fn) -(require-macros :macros.core) +(require-macros :cljlib-macros) (require-macros :test.test) (local @@ -63,7 +62,7 @@ : ge : lt : gt} - (require :core)) + (require :cljlib)) (deftest equality (testing "comparing basetypes" diff --git a/test/fn.fnl b/test/fn.fnl index f89581f..ec4e835 100644 --- a/test/fn.fnl +++ b/test/fn.fnl @@ -1,6 +1,5 @@ (require-macros :test.test) -(require-macros :macros.core) -(require-macros :macros.fn) +(require-macros :cljlib-macros) (deftest fn* (testing "fn* meta" diff --git a/test/macros.fnl b/test/macros.fnl index 4d4ac57..1876126 100644 --- a/test/macros.fnl +++ b/test/macros.fnl @@ -1,7 +1,5 @@ (require-macros :test.test) -(local {: identity} (require :core)) - -(require-macros :macros.core) +(require-macros :cljlib-macros) (deftest into (testing "into" @@ -74,7 +72,7 @@ (assert-eq (defmulti x (fn [x] (+ x 1))) nil)) (testing "defmulti defalut" - (defmulti fac identity) + (defmulti fac (fn [x] x)) (defmethod fac 0 [_] 1) (defmethod fac :default [x] (* x (fac (- x 1)))) (assert-eq (fac 42) 7538058755741581312)) diff --git a/test/test.fnl b/test/test.fnl index 211f330..6d04338 100644 --- a/test/test.fnl +++ b/test/test.fnl @@ -1,4 +1,4 @@ -(require-macros :macros.fn) +(require-macros :cljlib-macros) (fn eq-fn [] `(fn eq# [a# b#] -- cgit v1.2.3