Sha256: 2d0146d238a12111d75d6f92cf479a085f18d41d19e41d2c3120cd4b6023a182
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
require 'compiler_helper' module Alf class Compiler describe Default, "clip" do subject{ compiler.call(expr) } let(:expr){ clip(an_operand(leaf), [:a]) } it_should_behave_like "a traceable compiled" it 'has a Clip cog' do subject.should be_a(Engine::Clip) end it 'has the correct clipping attributes' do subject.attributes.should eq(AttrList[:a]) end it 'has the correct sub-cog' do subject.operand.should be(leaf) 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_clip.rb |