diff options
Diffstat (limited to 'macros_test.fnl')
| -rw-r--r-- | macros_test.fnl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macros_test.fnl b/macros_test.fnl index 246b639..f8c72fa 100644 --- a/macros_test.fnl +++ b/macros_test.fnl @@ -68,6 +68,10 @@ (assert-eq (if-some [a nil] a :nothing) :nothing))) (deftest multimethods + (testing defmulti + (defmulti x (fn [x] x)) + (assert-eq (defmulti x (fn [x] (+ x 1))) nil)) + (testing defmethod (defmulti fac identity) (defmethod fac 0 [_] 1) |