Sha256: 16cf17a3ed41f30e50fda8bea70c0e66dac23a512d7cc720e37b12a3e85ade3b

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

require 'queencheck/rspec'

describe QueenCheck do
  QueenCheck('stadard check', String) { | x |
    x.class.should == String
  }

  verboseQueenCheck('verbose check', QueenCheck::ASCIIChar) { | x |
    x.size.should == 1
  }

  labelingQueenCheck('labelig check', {
    "x > y" => proc{|x,y| x > y },
    "x < y" => proc{|x,y| x < y },
    "x = y" => proc{|x,y| x == y },
  },Integer, Integer) do | x, y |
    (x + y).should == y + x
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
queencheck-1.0.0 spec/queencheck/rspec_spec.rb