diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2020-11-13 22:54:12 +0300 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2020-11-13 22:54:12 +0300 |
| commit | 1b309ac016d806d2f9b44540ed5020f5c60c4256 (patch) | |
| tree | fca18ab2e0153a1462da473cd2fe5c9cc0de6a69 /tests/macros.fnl | |
| parent | 8493fa29b1848bf93e899e8930c6e8c1c723eece (diff) | |
fix(core): refactoring
- Rename `fn*` to `defn`, `fn&` to `fn+`.
- Do not use `fn+` in the core at all, provide it for convenience.
- Fix bug in `filter` due to incorrect `cons` implementation.
- Update `seq` and `eq` functions in macros
Diffstat (limited to 'tests/macros.fnl')
| -rw-r--r-- | tests/macros.fnl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/macros.fnl b/tests/macros.fnl index a9b41fe..402e42d 100644 --- a/tests/macros.fnl +++ b/tests/macros.fnl @@ -133,7 +133,7 @@ (assert-eq (meta g) (when-meta {:fnl/docstring "documentation"}))) (testing "defmulti with multiple arity" - (defmulti f (fn* ([x] x) ([x y] [x y]))) + (defmulti f (defn ([x] x) ([x y] [x y]))) (defmethod f :default ([_] :def) ([_ _] :def2)) (defmethod f :4 ([x] (.. x :2))) (defmethod f [:4 :2] ([x y] 42)) |