Closed agzam closed 8 years ago
Hi @agzam
Can you make an reproduction case that I could try?
@bensu
https://github.com/agzam/try-doo-with-spec/blob/master/test/cljs/try_doo_with_spec/foo_test.cljs#L9
quick-check doesn't work either.
Thanks again for helping me. I'll try adding to that another branch (which not using doo
) where it works.
I really want to use doo though.
@bensu oh... wow... I think I have figured out this one as well! I am so happy it's not a problem with Doo! It's turned out to be this:
prop/for-all
is a function (I think) based on a macro for-all*
. So in order it to work (in CLJS) you actually need to have (require '[clojure.test.check.properties :refer-macros [for-all]])
. Again, I might be totally wrong about function/macro thing, yet it seems to be working when required as shown.
Once again huuuuge, enormous, big thanks for helping me out! Sorry for bugging you with a non-existing problem (again). I'm glad though I have created this issue - if someone else stumbles on that, maybe finds this helpful.
I'm glad it worked out.
For some reason following code doesn't work:
throws messages like this:
This is the exact piece that doesn't work. The same thing works in CLJ and does work in CLJS when compiled .js is passed directly to Karma