Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double generator fails if {:max (- Double/MAX_VALUE)} #1128

Open
frenchy64 opened this issue Nov 24, 2024 · 0 comments
Open

Double generator fails if {:max (- Double/MAX_VALUE)} #1128

frenchy64 opened this issue Nov 24, 2024 · 0 comments
Labels
generator Related to generators for property-based testing

Comments

@frenchy64
Copy link
Collaborator

;; underlying generators don't seem to handle these well
(m/validate [:<= (- Double/MAX_VALUE)] (- Double/MAX_VALUE))
;=> true
(mg/generate [:<= (- Double/MAX_VALUE)])
;Couldn't satisfy such-that predicate after 10 tries.

;; similar issue
(m/validate [:double {:max (- Double/MAX_VALUE)}] (- Double/MAX_VALUE))
;=> true
(mg/generate [:double {:max (- Double/MAX_VALUE)}])
@frenchy64 frenchy64 added the generator Related to generators for property-based testing label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Related to generators for property-based testing
Projects
Status: No status
Development

No branches or pull requests

1 participant