Sha256: c4eaf108ee26c86ac46f2463f0462bcd120287511c2b81a9b0c4aaac96aecc61

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:predicate) { Function::Predicate::Equality.new(1, 1) }
  let(:object)    { described_class.new(predicate)          }

  before do
    object.should be_optimizable
  end

  it { should equal(Function::Proposition::Tautology.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/constant_operands/optimize_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/function/predicate/constant_operands/optimize_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/function/predicate/constant_operands/optimize_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/function/predicate/constant_operands/optimize_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/function/predicate/constant_operands/optimize_spec.rb