lib/prop_check/generators.rb in prop_check-0.18.1 vs lib/prop_check/generators.rb in prop_check-0.18.2

- old
+ new

@@ -232,11 +232,11 @@ def float frequency(49 => real_float, 1 => one_of(*@@special_floats.map(&method(:constant)))) end ## - # Generates any nonzerno floating-point number. + # Generates any nonzero floating-point number. # Will generate special floats (except NaN) from time to time. # c.f. #float def nonzero_float float.where { |val| val != 0.0 && val } end @@ -264,11 +264,11 @@ def positive_float nonnegative_float.where { |val| val != 0.0 && val } end ## - # Generates positive floating point numbers + # Generates negative floating point numbers # Will generate special floats (except NaN) from time to time. # c.f. #float def negative_float positive_float.map(&:-@).where { |val| val != 0.0 } end @@ -477,10 +477,10 @@ end end ## # - # Alias for `#hash` that does not conflict with a possibly overriden `Object#hash`. + # Alias for `#hash` that does not conflict with a possibly overridden `Object#hash`. # def hash_of(key_generator, value_generator, **kwargs) array(tuple(key_generator, value_generator), **kwargs) .map(&:to_h) end