Sha256: bb47bb50da1106ca92479918535b2c3b67239ef2e9f3ea879130c85597efd046
Contents?: true
Size: 546 Bytes
Versions: 4
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' module Gisele::Language describe Grammar, 'if_st' do it 'parses a single if statement' do expr = 'if goodCond Task end' parse(expr, :if_st).should eq(expr) end it 'supports an optional else' do expr = 'if goodCond GoodTask else BadTask end' parse(expr, :if_st).should eq(expr) end it 'supports an optional elsif clauses' do expr = 'if goodCond GoodTask elsif otherCond OtherTask elsif yetAnother BadTask end' parse(expr, :if_st).should eq(expr) end end end
Version data entries
4 entries across 4 versions & 2 rubygems