Sha256: 379b7e295cb0e0ce63bba48c952b4c7cadcbce063a1c4dd6b84c3f9d37fa3427

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Function::Predicate::Contradiction, '#optimize' do
  subject { object.optimize }

  let(:described_class) { Class.new(Optimizer) { include Optimizer::Function::Binary } }
  let(:attribute)       { Attribute::Integer.new(:id)                                  }
  let(:predicate)       { Function::Predicate::Inequality.new(attribute, attribute)    }
  let(:object)          { described_class.new(predicate)                               }

  before do
    described_class.class_eval { include Optimizer::Function::Predicate::Contradiction }
  end

  it { should equal(Function::Proposition::Contradiction.instance) }
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-optimizer-0.1.0 spec/unit/axiom/optimizer/function/predicate/contradiction/optimize_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/function/predicate/contradiction/optimize_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/function/predicate/contradiction/optimize_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/function/predicate/contradiction/optimize_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/function/predicate/contradiction/optimize_spec.rb