Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
like haskell's QuickCheck
Ruby
Branch: master
Pull request Compare This branch is 83 commits behind rosylilly:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.rvmrc
Gemfile
Guardfile
README.markdown

README.markdown

QueenCheck

QueenCheck is random test library.

Inspired by QuickCheck library in Haskell.

Usage

require 'queencheck'

number = 100

check = QueenCheck.new(number, :+, Integer)

res = check.run(verbose: true) do | result, arguments, error |
    result == number + arguments[0]
end

puts "#{res[:passed]} / #{res[:examples]}"
Something went wrong with that request. Please try again.