WARNING: Use of undeclared Var goog.math.Long/fromBits at line 64 file:/home/arne/.m2/repository/org/clojure/test.check/1.1.0/test.check-1.1.0.jar!/clojure/test/check/random/longs.cljs
WARNING: Use of undeclared Var goog.math.Long/fromString at line 77 file:/home/arne/.m2/repository/org/clojure/test.check/1.1.0/test.check-1.1.0.jar!/clojure/test/check/random/longs.cljs
WARNING: Use of undeclared Var goog.math.Long/fromNumber at line 81 file:/home/arne/.m2/repository/org/clojure/test.check/1.1.0/test.check-1.1.0.jar!/clojure/test/check/random/longs.cljs
WARNING: Use of undeclared Var goog.math.Long/fromNumber at line 87 file:/home/arne/.m2/repository/org/clojure/test.check/1.1.0/test.check-1.1.0.jar!/clojure/test/check/random/longs.cljs
WARNING: Use of undeclared Var goog.math.Long/getOne at line 92 file:/home/arne/.m2/repository/org/clojure/test.check/1.1.0/test.check-1.1.0.jar!/clojure/test/check/random/longs.cljs
WARNING: cljs.core/<=, all arguments must be numbers, got [#{nil js/Number} number] instead at line 1193 file:/home/arne/.m2/repository/org/clojure/test.check/1.1.0/test.check-1.1.0.jar!/clojure/test/check/generators.cljc
I'm seeing these warnings when using test.check from ClojureScript. Not sure what's causing them, can't immediately see fault with the code.did some googling but only found this, which does seem to show at least one other person ran into this 🙂 https://github.com/AdamFrey/cljs-test-check-warning-example
heya all
how are people using test.check with async code?
is there any pretty obvious way to do it?
I saw @gfredericks POC on https://github.com/clojure/test.check/commit/f90ee794dbe4dc766d91f9daa2160e8a8b0853be
Huh. Does that work? I don't remember it 🙃
In any case there's nothing more official than that
ok, now I know
I was asking because @wilkerlucio actually did something similar to what you did, but with core.async channels
https://github.com/clojure/test.check/compare/master...wilkerlucio:async-check
wilker and I were using it for test at http://roamresearch.com but now needed to extract it away from the official test.check
so I was wondering if there was something around already that we should be using
It's possible there are other libraries. But I'd say this is the most severe hole in test.check at the moment. That POC could be usable if the cljs.test details are worked out, and if it doesn't hurt perf for synchronous jvm use
what are the cljs.test details?
just "how should this be used from cljs.test?"; ideally it'd be similar or same as on the jvm e.g., can defspec work?
hm I see...
I was kinda focused on cljs so that didn't really come to mind
there I'd just use an async deftest
It might be easy. I just didn't know much about cljs testing when I made that commit
ok, will think about it some
thank you for the insight on this