Sha256: dc52624bb096928373524d7b528b39402eab2e3647d6bf48b9ff93c2178f1f0d

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

require 'spec_helper'
module Gisele::Language::Syntax
  describe Grammar, 'fluent_def' do

    it 'parses valid fluent definitions' do
      defn = 'fluent diagKnown {Diagnosis:start}, {Treatment:end} initially false'
      parse(defn, :fluent_def).should eq(defn)
    end

    it 'supports a missing initial value' do
      defn = 'fluent diagKnown {Diagnosis:start}, {Treatment:end}'
      parse(defn, :fluent_def).should eq(defn)
    end

    it 'supports empty sets for events' do
      defn = 'fluent diagKnown {}, {} initially true'
      parse(defn, :fluent_def).should eq(defn)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gisele-0.4.0 spec/unit/language/syntax/grammar/test_fluent_def.rb
gisele-0.3.0 spec/unit/language/syntax/grammar/test_fluent_def.rb