You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to spec something that is a finite number (when running tests I don't want the generator to give me +/-Inf or NaN)
Is there a simple way to express this idea? Have not been able to find it.
[:and number? [:> Double/MIN_VALUE] [<: Double/MAX_VALUE]] is the closest thing I can think of but that looks incorrect somehow. Would be nice to say just [:and number? (not infinite?)] or something similar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I would like to spec something that is a finite number (when running tests I don't want the generator to give me +/-Inf or NaN)
Is there a simple way to express this idea? Have not been able to find it.
[:and number? [:> Double/MIN_VALUE] [<: Double/MAX_VALUE]]
is the closest thing I can think of but that looks incorrect somehow. Would be nice to say just[:and number? (not infinite?)]
or something similar.Beta Was this translation helpful? Give feedback.
All reactions