Sha256: 45cc2f494242e0eb64006b928e2dd0f1e7f0c8fa785d516f5e72975c79c3a9f6
Contents?: true
Size: 691 Bytes
Versions: 19
Compression:
Stored size: 691 Bytes
Contents
require 'spec_helper' module Finitio describe SetType, "include?" do let(:type){ SetType.new(intType) } subject{ type.include?(arg) } context 'when included on empty set' do let(:arg){ Set.new } it{ should eq(true) } end context 'when included on non empty set' do let(:arg){ Set.new } before do arg << 12 end it{ should eq(true) } end context 'when not a set' do let(:arg){ [] } it{ should eq(false) } end context 'when a set with non ints' do let(:arg){ Set.new } before do arg << 12 arg << "foo" end it{ should eq(false) } end end end
Version data entries
19 entries across 19 versions & 1 rubygems