Sha256: 67edbf0529aec6d7763d82ce13eb197e63e9bee2aa0b4401d3bc888a271f4a0e

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Connective::Conjunction, '#inverse' do
  subject { object.inverse }

  let(:attribute) { Attribute::Integer.new(:id)      }
  let(:left)      { attribute.gt(1)                  }
  let(:right)     { attribute.lt(3)                  }
  let(:object)    { described_class.new(left, right) }

  it_should_behave_like 'an invertible method'

  it { should be_instance_of(Function::Connective::Disjunction) }

  its(:left) { should eql(Function::Connective::Negation.new(object.left)) }

  its(:right) { should eql(Function::Connective::Negation.new(object.right)) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/function/connective/conjunction/inverse_spec.rb
axiom-0.1.1 spec/unit/axiom/function/connective/conjunction/inverse_spec.rb
axiom-0.1.0 spec/unit/axiom/function/connective/conjunction/inverse_spec.rb