metosin/malli

Opaque `such-that` error when using `##NaN` as bound

Open

#1,130 opened on Nov 24, 2024

View on GitHub
 (0 comments) (0 reactions) (1 assignee)Clojure (1,724 stars) (237 forks)batch import
generatorhelp wanted

Description

(mg/generate [:>= ##NaN])
;Couldn't satisfy such-that predicate after 10 tries.
(mg/generate [:> ##NaN])
;Couldn't satisfy such-that predicate after 10 tries.
(mg/generate [:< ##NaN])
;Couldn't satisfy such-that predicate after 10 tries.
(mg/generate [:<= ##NaN])
;Couldn't satisfy such-that predicate after 10 tries.
(mg/generate [:double {:max ##NaN}])
;Couldn't satisfy such-that predicate after 10 tries.

Contributor guide