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

Version Path
prop_check-1.0.0 lib/prop_check.rb
prop_check-0.18.2 lib/prop_check.rb
prop_check-0.18.1 lib/prop_check.rb
prop_check-0.18.0 lib/prop_check.rb
prop_check-0.17.0 lib/prop_check.rb
prop_check-0.16.0 lib/prop_check.rb
prop_check-0.15.0 lib/prop_check.rb
prop_check-0.14.1 lib/prop_check.rb
prop_check-0.14.0 lib/prop_check.rb
prop_check-0.13.0 lib/prop_check.rb
prop_check-0.12.1 lib/prop_check.rb
prop_check-0.12.0 lib/prop_check.rb
prop_check-0.11.1 lib/prop_check.rb
prop_check-0.11.0 lib/prop_check.rb
prop_check-0.10.4 lib/prop_check.rb
prop_check-0.10.3 lib/prop_check.rb
prop_check-0.10.2 lib/prop_check.rb
prop_check-0.10.1 lib/prop_check.rb
prop_check-0.10.0 lib/prop_check.rb
prop_check-0.9.0 lib/prop_check.rb