Sha256: 826c0b53c1886a9d70d470a95186572ae3cfe20272dac848952a63a264e9f776
Contents?: true
Size: 607 Bytes
Versions: 3
Compression:
Stored size: 607 Bytes
Contents
require 'spec_helper' module Qrb describe SeqType, "equality" do let(:type) { SeqType.new(intType) } let(:type2){ SeqType.new(intType) } let(:type3){ SeqType.new(floatType) } it 'should apply structural equality' do (type == type2).should be_true end it 'should apply distinguish different types' do (type == type3).should be_false end it 'should be a total function, with false for non types' do (type == 12).should be_false end it 'should implement hash accordingly' do (type.hash == type2.hash).should be_true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/seq_type/test_equality.rb |
qrb-0.2.0 | spec/unit/type/seq_type/test_equality.rb |
qrb-0.1.0 | spec/unit/type/seq_type/test_equality.rb |