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