Sha256: 3e0cfcdc4f516c684d39eec90de3d7365e412914f4f09bea15dc2624af995104
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Connective::Binary::RedundantRightOperand#optimize' do subject { object.optimize } let(:klass) { Optimizer::Logic::Connective::Binary::RedundantRightOperand } let(:attribute) { Attribute::Integer.new(:id) } let(:left) { attribute.include([ 1 ]) } let(:right) { attribute.exclude([ 2 ]) } let(:connective) { left.and(left.and(right)) } let(:object) { klass.new(connective) } before do object.operation.should be_kind_of(Logic::Connective::Binary) end it { should be_kind_of(Logic::Connective::Conjunction) } its(:left) { should eql(attribute.eq(1)) } its(:right) { should eql(attribute.ne(2)) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/logic/connective/binary/redundant_right_operand/optimize_spec.rb |