Method: PropCheck::Generators.nonnegative_float

Defined in:
lib/prop_check/generators.rb

.nonnegative_floatObject

Generates nonnegative floating point numbers Will generate special floats (except NaN) from time to time. c.f. #float



248
249
250
# File 'lib/prop_check/generators.rb', line 248

def nonnegative_float
  float.map(&:abs).where { |val| val != Float::NAN }
end