Welcome! Please see the About page for a little more info on how this works.

0 votes
in Spec by

`
user=> (require '[clojure.spec.alpha :as s])
nil
user=> (s/def ::dubs1 (s/double-in))
:user/dubs1
user=> (s/valid? ::dubs1 ##NaN)
true ;; this looks correct

user=> (s/def ::dubs2 (s/double-in :min 100.0 :max 200.0))
:user/dubs2
user=> (s/valid? ::dubs2 ##NaN)
false ;; this looks wrong

user=> (s/def ::dubs3 (s/double-in :min 100.0 :max 200.0 :NaN? true))
:user/dubs3
user=> (s/valid? ::dubs3 ##NaN)
false ;; as does this
`

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2516 (reported by jafingerhut)
...