Sha256: d16278f9afe2ba96d105ae482755491b32d12b3de030cabc749b143e3a2ba5f8
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
require 'spec_helper' module Gisele::Language::Syntax describe Grammar, 'spacing' do it 'parses all kind of spaces' do parse(' ', :spacing).should eq(' ') parse("\t", :spacing).should eq("\t") parse("\n", :spacing).should eq("\n") parse(" \t\n", :spacing).should eq(" \t\n") end it 'does not enforces mandatory spacing' do parse('', :spacing).should eq('') 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_spacing.rb |
gisele-0.3.0 | spec/unit/language/syntax/grammar/test_spacing.rb |