Sha256: 3395d781a0a164784cd44d22d6998a0d74ac4de7c0e4597ba6d16090242b830d

Contents?: true

Size: 365 Bytes

Versions: 4

Compression:

Stored size: 365 Bytes

Contents

require 'spec_helper'
module Gisele::Language::Syntax
  describe WhenClause, 'to_ast' do

    it 'converts a when clause as expected' do
      expr = 'when goodCond Task'
      expected = \
        [:when_clause,
          [:bool_expr, [:var_ref, "goodCond"] ],
          [:task_call_st, "Task"]]
      ast(expr, :when_clause).should eq(expected)
    end

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gisele-language-0.6.0 spec/language/syntax/to_ast/test_when_clause.rb
gisele-language-0.5.1 spec/language/syntax/to_ast/test_when_clause.rb
gisele-language-0.5.0 spec/language/syntax/to_ast/test_when_clause.rb
gisele-0.5.0 spec/unit/language/syntax/to_ast/test_when_clause.rb