Sha256: 828c30bdff022a8c11988ed3f418b3a58b46a7ff693a9465e838cc7a42d95483

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Function::Connective::Negation::ConstantOperand, '#optimize' do
  subject { object.optimize }

  let(:negation) { Function::Connective::Negation.new(false) }
  let(:object)   { described_class.new(negation)             }

  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/connective/negation/constant_operand/optimize_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/function/connective/negation/constant_operand/optimize_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/function/connective/negation/constant_operand/optimize_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/function/connective/negation/constant_operand/optimize_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/function/connective/negation/constant_operand/optimize_spec.rb