lib/prop_check/generator.rb in prop_check-0.10.3 vs lib/prop_check/generator.rb in prop_check-0.10.4

- old
+ new

@@ -98,10 +98,12 @@ # >> Generators.choose(32..128).map(&:chr).call(10, Random.new(42)) # => "S" def map(&proc) Generator.new do |size, rng| result = self.generate(size, rng) - result.map(&proc) + result.map do |*val| + proc.call(*val) + end end end ## # Creates a new Generator that only produces a value when the block `condition` returns a truthy value.