Sha256: de4087d81ad2a6f9874b2b803fab69ec5698fa51a02a2c7e5f64ebd0a0eebc70

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Extension, '#hash' do
  subject { object.hash }

  let(:operand)    { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) }
  let(:extensions) { { :test => lambda { |tuple| 1 } }                    }
  let(:object)     { described_class.new(operand, extensions)             }

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ operand.hash ^ extensions.hash }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 spec/unit/veritas/algebra/extension/hash_spec.rb
veritas-0.0.6 spec/unit/veritas/algebra/extension/hash_spec.rb
veritas-0.0.5 spec/unit/veritas/algebra/extension/hash_spec.rb
veritas-0.0.4 spec/unit/veritas/algebra/extension/hash_spec.rb