metosin/malli

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

Open

#1,130 opened on 2024年11月24日

GitHub で見る
 (0 comments) (0 reactions) (1 assignee)Clojure (1,724 stars) (237 forks)batch import
generatorhelp wanted

説明

(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.

コントリビューターガイド