summaryrefslogtreecommitdiff
path: root/macros_test.fnl
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-10-28 22:34:05 +0300
committerAndrey Orst <andreyorst@gmail.com>2020-10-28 22:34:05 +0300
commita047b3e4ed2acaf562097b8ba012335bb7e59fbd (patch)
treea1f0dbfaf7712fbb06f988c224c1472d6e710369 /macros_test.fnl
parentb808962fa90cb7dc9c4ac150777f5edcd660145b (diff)
feature(code): greatly improve code coverage
Diffstat (limited to 'macros_test.fnl')
-rw-r--r--macros_test.fnl9
1 files changed, 8 insertions, 1 deletions
diff --git a/macros_test.fnl b/macros_test.fnl
index 98401d7..850b181 100644
--- a/macros_test.fnl
+++ b/macros_test.fnl
@@ -29,7 +29,14 @@
(let [a (fn [] {:a 1})
b (fn [] [[:b 2]])]
(assert-eq (into (a) (b)) {:a 1 :b 2})
- (assert-eq (into (b) (a)) [[:b 2] [:a 1]]))
+ (assert-eq (into (b) (a)) [[:b 2] [:a 1]])
+ (let [c []]
+ (assert-eq (into c (b)) [[:b 2]]))
+ (let [c []]
+ (assert-eq (into c (a)) [[:a 1]]))
+ (let [c []]
+ (assert-eq (into (b) c) (b))
+ (assert-eq (into (a) c) (a))))
(let [a {}
b []]