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