Skip to content

Commit

Permalink
Add spec for symbol/keyword bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Olson committed Apr 20, 2013
1 parent 87cfad1 commit 7cb60f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/compiler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def bad_apricot(code)
apricot(':foo').should == :foo
end

it "doesn't mix up symbols and keywords in lists" do
# There once was a bug where :true would get compiled as the value true.
apricot('(.class :true)').should == Symbol
end

it 'compiles strings' do
apricot('"foo"').should == "foo"
end
Expand Down

0 comments on commit 7cb60f8

Please sign in to comment.