cgore / gin

All the generators you need and/or want.
Eclipse Public License 1.0
1 stars 0 forks source link

Add special doubles to the double generator. #1

Open cgore opened 8 years ago

cgore commented 8 years ago

The double generator should intentionally return the weird doubles with some regularity, they are bug magnets.

http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html

cgore commented 8 years ago

Ick.

(= Double/NaN Double/NaN)
;; => false
cgore commented 8 years ago

Via @arcdrag:

(<= 0 Double/NaN 10)
;; => true
(<= 0 Double/NaN)
;; => false
(<= Double/NaN 10)
;; => false

Fixed in Clojure 1.7.