Sha256: 6132c55196e818009fda4f9debceeae443e32057a1e4b4b5869ae1a7473ef471

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

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

    it 'parses a single when clause statement' do
      expr = 'when goodCond Task'
      parse(expr, :when_clause).should eq(expr)
    end

    it 'supports a boolean expression' do
      expr = 'when not(goodCond and badCond) Task'
      parse(expr, :when_clause).should eq(expr)
    end

    it 'supports an complex process statement' do
      expr = 'when goodCond Task1 par Task2 Task3 end'
      parse(expr, :when_clause).should eq(expr)
    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_when_clause.rb
gisele-0.3.0 spec/unit/language/syntax/grammar/test_when_clause.rb