Sha256: 69383edd4e2b47c9b2cd30a126a99541af311b32b9a751bc570c4d64bb41c1d0
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require 'compiler_helper' module Alf class Compiler describe Default, "union" do subject{ compiler.call(expr) } let(:right){ clip(an_operand(leaf), [:a]) } let(:expr){ union(an_operand(leaf), right) } it_should_behave_like "a traceable compiled" it 'has a Compact cog' do subject.should be_a(Engine::Compact) end it 'has a Concat sub-cog' do subject.operand.should be_a(Engine::Concat) end it 'has the correct sub-sub-cogs' do ops = subject.operand.operands ops.first.should be(leaf) ops.last.should be_a(Engine::Clip) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-compiler/default/test_union.rb |