Sha256: 989c0960fde209b249905928924a47d119bc557ff992847e6e6f94848f21cc62

Contents?: true

Size: 670 Bytes

Versions: 5

Compression:

Stored size: 670 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:described_class) { Class.new(Optimizer) { include Optimizer::Function::Binary } }
  let(:attribute)       { Attribute::Integer.new(:id)                                  }
  let(:predicate)       { Function::Predicate::Equality.new(attribute, attribute)      }
  let(:object)          { described_class.new(predicate)                               }

  before do
    described_class.class_eval { include Optimizer::Function::Predicate::Tautology }
  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/tautology/optimize_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/function/predicate/tautology/optimize_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/function/predicate/tautology/optimize_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/function/predicate/tautology/optimize_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/function/predicate/tautology/optimize_spec.rb