Sha256: d13b1ef52834f1f9538d2d55fdb21c1b645a6bdae8ec8d2452b736322bb77d0d

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

require 'spec_helper'
module Gisele::Language
  describe "the Sexp grammar", "when_clause" do

    it 'matches a valid when clause' do
      when_clause = \
        [:when_clause, [:bool_expr, [:bool_lit, true]], [:nop_st]]
      (sexp_grammar[:when_clause] === when_clause).should be_true
    end

  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
gisele-language-0.6.0 spec/language/grammar_sexp/test_when_clause.rb
gisele-language-0.5.1 spec/language/grammar_sexp/test_when_clause.rb
gisele-language-0.5.0 spec/language/grammar_sexp/test_when_clause.rb
gisele-0.5.0 spec/unit/language/grammar_sexp/test_when_clause.rb
gisele-0.4.0 spec/unit/language/grammar_sexp/test_when_clause.rb