Sha256: 17b36635f693926708a1c6ba8469c12495249bff46aae5cba816a820369b2c59
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
require 'spec_helper' module Gisele::Language describe "the Sexp grammar", "fluent_def" do let(:g){ Gisele::Language } it 'matches an fluent with initial value' do fluent = [:fluent_def, "name", [:event_set, "start"], [:event_set, "stop"], true] (sexp_grammar[:fluent_def] === fluent).should be_true end it 'matches an fluent without initial value' do fluent = [:fluent_def, "name", [:event_set, "start"], [:event_set, "stop"], nil] (sexp_grammar[:fluent_def] === fluent).should be_true end end end
Version data entries
4 entries across 4 versions & 2 rubygems