metosin/malli

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

Open

#1,130 建立於 2024年11月24日

在 GitHub 查看
 (0 留言) (0 反應) (1 負責人)Clojure (1,724 star) (237 fork)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.

貢獻者指南