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