Sha256: f9d8b3fb42c14ffe09bea843cada77eb35480e4d323de3b2c88b95c3ecfdae0b

Contents?: true

Size: 703 Bytes

Versions: 18

Compression:

Stored size: 703 Bytes

Contents

#
# ActiveFacts tests: Test the CQL parser by looking at its parse trees.
# Copyright (c) 2008 Clifford Heath. Read the LICENSE file.
#

require 'activefacts/cql'
require 'activefacts/support'
require 'activefacts/api/support'
require 'spec_helper'
require 'helpers/test_parser'

describe "ASTs from Derived Fact Types with expressions" do
  it "should parse a simple comparison clause" do
    %q{
      each combination FamilyName, GivenName occurs at most one time in Competitor has FamilyName, Competitor has GivenName;
    }.should parse_to_ast \
      "PresenceConstraint over [[{Competitor} \"has\" {FamilyName}], [{Competitor} \"has\" {GivenName}]] -1 over ({FamilyName}, {GivenName})"
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
activefacts-1.6.0 spec/cql/parser/constraints_spec.rb
activefacts-1.5.3 spec/cql/parser/constraints_spec.rb
activefacts-1.5.2 spec/cql/parser/constraints_spec.rb
activefacts-1.5.1 spec/cql/parser/constraints_spec.rb
activefacts-1.5.0 spec/cql/parser/constraints_spec.rb
activefacts-1.3.0 spec/cql/parser/constraints_spec.rb
activefacts-1.2.1 spec/cql/parser/constraints_spec.rb
activefacts-1.2.0 spec/cql/parser/constraints_spec.rb
activefacts-1.1.0 spec/cql/parser/constraints_spec.rb
activefacts-1.0.2 spec/cql/parser/constraints_spec.rb
activefacts-1.0.1 spec/cql/parser/constraints_spec.rb
activefacts-1.0.0 spec/cql/parser/constraints_spec.rb
activefacts-0.8.18 spec/cql/parser/constraints_spec.rb
activefacts-0.8.16 spec/cql/parser/constraints_spec.rb
activefacts-0.8.15 spec/cql/parser/constraints_spec.rb
activefacts-0.8.13 spec/cql/parser/constraints_spec.rb
activefacts-0.8.12 spec/cql/parser/constraints_spec.rb
activefacts-0.8.10 spec/cql/parser/constraints_spec.rb