diff options
Diffstat (limited to 'macros_test.fnl')
| -rw-r--r-- | macros_test.fnl | 9 |
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 []] |