Sha256: c15d4a622f2ada14f91b3b006cd6cc8b8a2e617aeba458de838cbac81262dfb7

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Function::Connective::Disjunction::ContradictionLeft, '#optimize' do
  subject { object.optimize }

  let(:attribute)  { Attribute::Integer.new(:id)                        }
  let(:left)       { Function::Proposition::Contradiction.instance      }
  let(:right)      { attribute.eq(1)                                    }
  let(:connective) { Function::Connective::Disjunction.new(left, right) }
  let(:object)     { described_class.new(connective)                    }

  before do
    expect(object).to be_optimizable
  end

  it { should be(right) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-optimizer-0.2.0 spec/unit/axiom/optimizer/function/connective/disjunction/contradiction_left/optimize_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/function/connective/disjunction/contradiction_left/optimize_spec.rb