README.markdown in queencheck-0.0.1 vs README.markdown in queencheck-0.0.2

- old
+ new

@@ -1,25 +1,24 @@ -# QueenCheck [![Build Status](https://secure.travis-ci.org/rosylilly/QueenCheck.png)](http://travis-ci.org/rosylilly/QueenCheck) +# QueenCheck [![Build Status](https://secure.travis-ci.org/rosylilly/QueenCheck.png)](http://travis-ci.org/rosylilly/QueenCheck) [![Gem Status](https://gemnasium.com/rosylilly/QueenCheck.png)](https://gemnasium.com/rosylilly/QueenCheck) QueenCheck is random test library. Inspired by QuickCheck library in Haskell. ## Usage -```shell -gem install queencheck -``` + $ gem install queencheck -```ruby -require 'queencheck' -number = 100 +## Example -check = QueenCheck.new(number, :+, Integer) - -res = check.run(verbose: true) do | result, arguments, error | -result == number + arguments[0] -end - -puts "#{res.passes} / #{res.examples}" -``` + require 'queencheck' + + number = 100 + + check = QueenCheck(number, :+, Integer) + + res = check.run(verbose: true) do | result, arguments, error | + result == number + arguments[0] + end + + puts "#{res.passes} / #{res.examples}"