Sha256: b6db5164e07ad4971eb2ee559eae34d5fc892c55147cb60a70f4d78e1762617c
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Function::Connective::Conjunction::RightOperandTautology, '#optimize' do subject { object.optimize } let(:attribute) { Attribute::Integer.new(:id) } let(:left) { attribute.eq(1) } let(:right) { Function::Proposition::Tautology.instance } let(:connective) { left.and(right) } let(:object) { described_class.new(connective) } before do object.should be_optimizable end it { should equal(left) } end
Version data entries
4 entries across 4 versions & 1 rubygems