Sha256: ddefaba4853a4f05d53affc9c54c59a86dfdc4c0806055888191833e2379d960

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 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
    expect(object).to be_optimizable
  end

  it { should be(Function::Proposition::Tautology.instance) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-optimizer-0.2.0 spec/unit/axiom/optimizer/function/connective/negation/constant_operand/optimize_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/function/connective/negation/constant_operand/optimize_spec.rb