Sha256: d8314d018b03aa7c39fcbc87ad03daeb431a8cc5c2d05beb99c212beef3fe124
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
require 'rubyqc/test' describe 'kind_of' do [Fixnum, Bignum, Array, Integer, Class].each do |klass| should klass.name do check(klass){ |obj| obj.should.kind_of(klass) } end end [[], [Fixnum], [Fixnum, Array], {}, {:a => 0}, {'b' => 1}, {2 => Integer}, {nil => [Fixnum]}, {true => {false => [Bignum]}} ].each do |spec| should spec.inspect do check(spec) do |generated| verify_generated(generated, spec) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubyqc-0.0.2 | test/test_kind_of.rb |
rubyqc-0.0.1 | test/test_kind_of.rb |