Sha256: 24e58d4f62e40ea230192723c51db62523be54973ed4c891f08e15d0bae757e7
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Restriction::Contradiction, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:base) { Relation.new(header, [ [ 1 ] ].each) } let(:predicate) { Function::Proposition::Contradiction.instance } let(:relation) { base.restrict { predicate } } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Empty) } its(:header) { should equal(header) } end
Version data entries
2 entries across 2 versions & 1 rubygems