Sha256: c9e7ef68eb78b9ea61809a033a539cffd15b305daf49bff6fb78ab85b1b21a02
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
require 'spec_helper' describe 'Veritas::Algebra::Extension#hash' do subject { object.hash } let(:klass) { Algebra::Extension } let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) } let(:extensions) { { :test => lambda { |tuple| 1 } } } let(:object) { klass.new(operand, extensions) } it_should_behave_like 'a hash method' it { should == klass.hash ^ operand.hash ^ extensions.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/algebra/extension/hash_spec.rb |