summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-11-07 13:06:36 +0300
committerAndrey Orst <andreyorst@gmail.com>2020-11-07 13:06:36 +0300
commite0c883ae5e00a6a8f4cdeea0cea497ceac072c5c (patch)
tree247a90bda773006561cfbd70db124d7937336575
parent2839566c7f83747bb8e2f28ae47699bd27f0ada7 (diff)
fix(macros): fix metadata tests
-rw-r--r--Makefile6
-rw-r--r--test/fn.fnl6
2 files changed, 5 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 5188226..e835f4d 100644
--- a/Makefile
+++ b/Makefile
@@ -20,9 +20,9 @@ clean-all: clean
rm -f luacov*
test: clean
- @fennel --lua $(LUA) test/fn.fnl
- @fennel --lua $(LUA) test/core.fnl
- @fennel --lua $(LUA) test/macros.fnl
+ @fennel --lua $(LUA) --metadata test/fn.fnl
+ @fennel --lua $(LUA) --metadata test/core.fnl
+ @fennel --lua $(LUA) --metadata test/macros.fnl
luacov: | clean-all all luacov-stats
luacov
diff --git a/test/fn.fnl b/test/fn.fnl
index b9876ca..7ea7c0a 100644
--- a/test/fn.fnl
+++ b/test/fn.fnl
@@ -40,10 +40,8 @@
(testing fn&-meta
(fn& f "docstring" [x] x)
(assert-eq (meta f) {:fnl/docstring "docstring"
- ;; :fnl/arglist ["x"] ;; TODO: why this works only in REPL?
- })
+ :fnl/arglist ["x"]})
(fn& f "docstring" [...] [...])
(assert-eq (meta f) {:fnl/docstring "docstring"
- ;; :fnl/arglist ["..."] ;; TODO: same as above
- })))
+ :fnl/arglist ["..."]})))