Sha256: d5427e5e8a22cf452d349746e31a96868441d9faf35e8748f123f4b9fdfcbddd

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

shared_examples_for "an unoptimizable expression for restrict" do

  let(:the_predicate){
    defined?(predicate) ? predicate : Alf::Predicate.eq(:x, 12)
  }

  let(:restriction){
    restrict(subject, the_predicate)
  }

  let(:optimized){
    Alf::Optimizer::Restrict.new.call(restriction)
  }

  # before(:all) do
  #   puts Support.to_lispy(restriction)
  #   puts Support.to_lispy(optimized)
  # end

  specify "optimized is unchanged" do
    optimized.should eq(restriction)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-optimizer/shared/an_unoptimizable_expression_for_restrict.rb
alf-core-0.14.0 spec/unit/alf-optimizer/shared/an_unoptimizable_expression_for_restrict.rb
alf-core-0.13.1 spec/unit/alf-optimizer/shared/an_unoptimizable_expression_for_restrict.rb
alf-core-0.13.0 spec/unit/alf-optimizer/shared/an_unoptimizable_expression_for_restrict.rb