diff options
Diffstat (limited to 'test/macros.fnl')
| -rw-r--r-- | test/macros.fnl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/macros.fnl b/test/macros.fnl index 638a29d..53de853 100644 --- a/test/macros.fnl +++ b/test/macros.fnl @@ -135,3 +135,10 @@ (assert-eq (meta x) (when-meta {:fnl/docstring "x"})) (defonce {:doc "y" :dynamic true} y 20) (assert-eq (meta y) (when-meta {:fnl/docstring "y"})))) + +(deftest empty + (testing empty + (assert-eq (empty {}) {}) + (assert-eq (empty []) {}) + (assert-eq (getmetatable (empty [])) {:cljlib/table-type :seq}) + (assert-eq (getmetatable (empty {})) {:cljlib/table-type :table}))) |