Sha256: 4ce4bab886ac5a502f26aaa6c5186e3a3b913af6a3ed02ba967fb7da2de58670

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

require 'compiler_helper'
module Alf
  class Compiler
    describe Default, "compact" do

      subject{
        compiler.call(expr)
      }

      let(:expr){
        compact(an_operand(leaf))
      }

      it_should_behave_like "a traceable compiled"

      it 'has a Compact cog' do
        subject.should be_a(Engine::Compact)
      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_compact.rb