Sha256: 96bc8ccdec034184c9df38ab0ecee208ddec4e7941178e11194c8a032a66613e

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    describe Matching, 'heading' do

      let(:left){
        an_operand.with_heading(:id => Fixnum, :name => String)
      }
      let(:right){
        an_operand.with_heading(:id => Integer, :foo => String)
      }

      let(:op){ 
        a_lispy.matching(left, right)
      }
      subject{ op.heading }

      let(:expected){
        Heading[:id => Fixnum, :name => String]
      }

      it { should eq(expected) }

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-algebra/operator/matching/test_heading.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/matching/test_heading.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/matching/test_heading.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/matching/test_heading.rb