Closed johannesloetzsch closed 3 years ago
bellman-ford-test failed because Infinity is evaluated as nil.
bellman-ford-test
Infinity
nil
A minimal fix would be to change Infinity to js/Infinity here:
js/Infinity
(def INF #?(:clj Double/POSITIVE_INFINITY :cljs Infinity))
Since v1.9.946 ##Inf is supported in Clojure(script) and does the job as expected. I fixed the testcases.
##Inf
src/loom/alg.cljc works correctly, since it uses js/Infinity and not Infinity. If you want, we could clean it up and use ##Inf there as well?
src/loom/alg.cljc
bellman-ford-test
failed becauseInfinity
is evaluated asnil
.A minimal fix would be to change
Infinity
tojs/Infinity
here:Since v1.9.946
##Inf
is supported in Clojure(script) and does the job as expected. I fixed the testcases.src/loom/alg.cljc
works correctly, since it usesjs/Infinity
and notInfinity
. If you want, we could clean it up and use##Inf
there as well?