Hi all,
I wonder if there is any way to make macro expansion in Clojure
deterministic. That would be useful in unit tests. Something like this:
```
(defmacro lol []
`(let [a# 1] (inc a#)))
(with-predictable-gensym-starting-from-zero
(macroexpand '(lol))
;; => `(let [a0 1] (inc a0))
```
--
Y
joplin.jdbc.database works fine. Thanks for the tip.
On Sat, Mar 21, 2015 at 9:55 PM, Hildeberto Mendonça
wrote:
> Hi Daniel, thanks for your feedback.
>
> On Sat, Mar 21, 2015 at 11:40 AM, Daniel Kersten
> wrote:
>
>> Make sure you require the sql migrations in your jub.datasources source
>> f
Well, I think it's nondeterministic by design, we usually just test its
behavior, not the form it expanded to.
2015-03-23 10:52 GMT+08:00 myguidingstar :
> Hi all,
> I wonder if there is any way to make macro expansion in Clojure
> deterministic. That would be useful in unit tests. Something lik