Sha256: 709da9c4d525f01072c32990197ab9dd144fec5c1baeb7e4668a2df9c79fdefe
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
require 'spec_helper' module Finitio describe SetType, "equality" do let(:type) { SetType.new(intType) } let(:type2){ SetType.new(intType) } let(:type3){ SetType.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | spec/unit/type/set_type/test_equality.rb |
finitio-0.4.0 | spec/unit/type/set_type/test_equality.rb |