Sha256: 31838fb70da19afb5fbeed8693d0e94e16a7d9190ae396daad23c16b06cde0fb
Contents?: true
Size: 818 Bytes
Versions: 4
Compression:
Stored size: 818 Bytes
Contents
require 'spec_helper' module Alf module Algebra describe Intersect, 'heading' do let(:left){ an_operand.with_heading(:id => Integer, :name => String) } let(:expected){ Heading[:id => Integer, :name => String] } subject{ op.heading } context 'when exactly same heading' do let(:right){ an_operand.with_heading(:id => Integer, :name => String) } let(:op){ a_lispy.intersect(left, right) } it { should eq(expected) } end context 'with some subtypes' do let(:right){ an_operand.with_heading(:id => Fixnum, :name => String) } let(:op){ a_lispy.intersect(left, right) } it { should eq(expected) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems