Sha256: e240e70673dd6297b8c60c15e21d2d18dcf80d9aab947d6929df95f75efbe2ff

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:connective) { Function::Connective::Conjunction.new(true, true) }
  let(:object)     { described_class.new(connective)                   }

  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/binary/constant_operands/optimize_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/function/connective/binary/constant_operands/optimize_spec.rb