Sha256: 311e67704a99350aacd0d86d619a9f197cfd31b6cbb94636382c2bf3d194a22a

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 Bytes

Contents

require 'spec_helper'
module Gisele::Language
  describe Grammar, 'trackvar_def' do

    it 'parses valid tracking variable definitions' do
      defn = 'trackvar plateletLow {BloodTest:end}'
      parse(defn, :trackvar_def).should eq(defn)
    end

    it 'supports an optional initial value' do
      defn = 'trackvar plateletLow {BloodTest:end} initially false'
      parse(defn, :trackvar_def).should eq(defn)
    end

    it 'supports optional obsolete events' do
      defn = 'trackvar plateletLow {BloodTest:end}, {Chemotherapy:end}'
      parse(defn, :trackvar_def).should eq(defn)
    end

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gisele-language-0.6.0 spec/language/syntax/grammar/test_trackvar_def.rb
gisele-language-0.5.1 spec/language/syntax/grammar/test_trackvar_def.rb
gisele-language-0.5.0 spec/language/syntax/grammar/test_trackvar_def.rb
gisele-0.5.0 spec/unit/language/syntax/grammar/test_trackvar_def.rb