Sha256: 070500de6b523b5f9343fb5e1a564de8dcaee479dea11c50bae20be1e7712579
Contents?: true
Size: 946 Bytes
Versions: 20
Compression:
Stored size: 946 Bytes
Contents
require "prop_check/version" require 'prop_check/property' require 'prop_check/generator' require 'prop_check/generators' require 'prop_check/helper' ## # Main module of the PropCheck library. # # You probably want to look at the documentation of # PropCheck::Generator and PropCheck::Generators # to find out more about how to use generators. # # Common usage is to call `extend PropCheck` in your (testing) modules. # # This will: # 1. Add the local method `forall` which will call `PropCheck.forall` # 2. `include PropCheck::Generators`. # module PropCheck module Errors class Error < StandardError; end class UserError < Error; end class GeneratorExhaustedError < UserError; end class MaxShrinkStepsExceededError < UserError; end end extend self ## # Runs a property. # # See the README for more details. def forall(*args, **kwargs, &block) PropCheck::Property.forall(*args, **kwargs, &block) end end
Version data entries
20 entries across 20 versions & 1 rubygems