define-tests macro, evals body only when inside fennelrepl --test
This commit is contained in:
@@ -18,4 +18,8 @@
|
||||
(.. "\nexpected " ve# "\ngot " va#)
|
||||
))))
|
||||
|
||||
{ : expect : expect= }
|
||||
(fn define-tests [& body]
|
||||
(when _G.RUNNING_TESTS
|
||||
`(do ,(unpack body))))
|
||||
|
||||
{ : define-tests : expect : expect= }
|
||||
|
Reference in New Issue
Block a user