Sha256: f882f0e552ac6abc56a3482b78427c03fb5e2b42cd744751d3b473ef96a5b009
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
require 'spec_helper' module Finitio describe SeqType, "include?" do let(:type){ SeqType.new(intType) } subject{ type.include?(arg) } context 'when included on empty array' do let(:arg){ [] } it{ should be_true } end context 'when included on non empty array' do let(:arg){ [] } before do arg << 12 end it{ should be_true } end context 'when not an array' do let(:arg){ Set.new } it{ should be_false } end context 'when an array with non ints' do let(:arg){ [] } before do arg << 12 arg << "foo" end it{ should be_false } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | spec/unit/type/seq_type/test_include.rb |
finitio-0.4.0 | spec/unit/type/seq_type/test_include.rb |