summaryrefslogtreecommitdiff
path: root/tests/core.fnl
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-11-17 20:43:37 +0300
committerAndrey Orst <andreyorst@gmail.com>2020-11-17 20:43:37 +0300
commit8a136eaa444f4569fced95fb175ca41b1e8e9b94 (patch)
tree65a3b02ff65150cb2f2e5656b98ab832be39f421 /tests/core.fnl
parent5753537138f6a0c71ddb6a8d9770b7cb13c1bd3f (diff)
feature: major overhaul of documentation, and some housekeeping
- remove(macros): `fn+` as it seem impractical, and `fn*` can be used instead - rename(def, defonce): `:dynamic` to `:mutable` as dynamic implies dynamic scoping which is not feature of Lua. - doc: generated documentation for macro module.
Diffstat (limited to 'tests/core.fnl')
-rw-r--r--tests/core.fnl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/core.fnl b/tests/core.fnl
index 5dc4953..edd72f4 100644
--- a/tests/core.fnl
+++ b/tests/core.fnl
@@ -5,7 +5,8 @@
"Require module and bind all it's functions to locals."
`(local ,(let [destr-map# {}]
(each [k# _# (pairs (require module))]
- (tset destr-map# k# (sym k#)))
+ (when (not= (string.sub k# 1 1) :_)
+ (tset destr-map# k# (sym k#))))
destr-map#)
(require ,module)))