summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-11-10 23:26:08 +0300
committerAndrey Orst <andreyorst@gmail.com>2020-11-10 23:26:08 +0300
commit5bf187555012925bbd464b86ca49f7bd37e2c51c (patch)
tree50fe4d7fefaa62e09bbe4320a6c4cf97df59fbff /test
parent61345c5ace172f3c6f133f8ffb09722c5b9a9b08 (diff)
feature(core): breaking change of project structure
Diffstat (limited to 'test')
-rw-r--r--test/core.fnl5
-rw-r--r--test/fn.fnl3
-rw-r--r--test/macros.fnl6
-rw-r--r--test/test.fnl2
4 files changed, 6 insertions, 10 deletions
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#]