Sha256: 9c6d164a6981a1b2b8544d029af71ba0c428018cc77b7f7d815cd7ecd785fdf5

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 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
    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/predicate/constant_operands/optimize_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/function/predicate/constant_operands/optimize_spec.rb