metosin/malli

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

開放

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

 (0 則留言) (0 個反應) (1 位負責人)Clojure (237 個分叉)batch import
generatorhelp wanted

倉庫指標

星標
 (1,724 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南