Sha256: c621734649cea5bd927e79fd1f5bf6e682b871ab5604225dabcfaf1d2ceac88b

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

require 'test_helpers'
describe Alf do

  it 'should meet union/intersect priorities' do
    db.connect do |conn|
      rel = conn.query{
        r1 = union(
               restrict(suppliers, city: 'Paris'), 
               restrict(suppliers, city: 'London'))
        r2 = restrict(suppliers, gt(:status, 20))
        intersect(r1, r2)
      }
      exp = conn.query{
        restrict(suppliers, sid: 'S3')
      }
      rel.should eq(exp)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alf-0.16.3 spec/regression/test_0003.rb
alf-0.16.2 spec/regression/test_0003.rb
alf-0.16.1 spec/regression/test_0003.rb