Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

like haskell's QuickCheck

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Guardfile
Octocat-spinner-32 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.