Sha256: cf0a9f5acd033225ec10421af93be513d6f7fb69dc0e548cc6d97cf9ea0c70c7
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
require 'spec_helper' module Gisele::Language::Syntax describe TrackvarDef, "to_ast" do it 'converts tracking variable definitions as expected' do defn = "trackvar mplus {Diagnosis:start}" expected = [:trackvar, "mplus", [:event_set, "Diagnosis:start"], [:event_set], nil] ast(defn, :trackvar_def).should eq(expected) end it 'supports obsolete events and initial value' do defn = "trackvar mplus {Diagnosis:start}, {Treatment:end} initially true" expected = [:trackvar, "mplus", [:event_set, "Diagnosis:start"], [:event_set, "Treatment:end"], true] ast(defn, :trackvar_def).should eq(expected) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gisele-0.3.0 | spec/unit/language/syntax/to_ast/test_trackvar_def.rb |