Sha256: 5e074bbe7e19cd6cb8e4a37b20ffd6d7db62fab7e5245d34aff26bd71d7ff05f
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
require 'spec_helper' module Gisele::Language::Syntax describe Grammar, 'boolean_literal' do it 'parses booleans' do parse('true', :boolean_literal).should eq('true') parse('false', :boolean_literal).should eq('false') end it 'does not parses integers' do lambda{ parse('0', :boolean_literal) }.should raise_error(Citrus::ParseError) 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_boolean_literal.rb |
gisele-0.3.0 | spec/unit/language/syntax/grammar/test_boolean_literal.rb |