Skip to content
like haskell's QuickCheck
Ruby
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.