Sha256: 938f882bb6cf454dc4f97a0b4e832c9e1cb4a0e7b548c14b74540186fe0055ff

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    describe Wrap do

      let(:operator_class){ Wrap }

      it_should_behave_like("An operator class")


      context '--no-allbut' do
        subject{ a_lispy.wrap(an_operand, [:a, :b], :wraped) }

        it { should be_a(Wrap) }

        it 'should not be allbut' do
          subject.allbut.should be_false
        end
      end

      context '--allbut' do
        subject{ a_lispy.wrap(an_operand, [:a, :b], :wraped, :allbut => true) }

        it { should be_a(Wrap) }

        it 'should be allbut' do
          subject.allbut.should be_true
        end
      end
    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/test_wrap.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/test_wrap.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/test_wrap.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/test_wrap.rb