Skip to content

Commit

Permalink
add quoted symbol tests; ref #3231
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Nov 4, 2016
1 parent 2960c69 commit 46995c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/t/symbol.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
##
# Symbol ISO Test

assert('Symbol') do
assert_equal :"a", :a
assert_equal :"a#{1}", :a1
assert_equal :'a', :a
assert_equal :'a#{1}', :"a\#{1}"
end

assert('Symbol', '15.2.11') do
assert_equal Class, Symbol.class
end
Expand Down

0 comments on commit 46995c3

Please sign in to comment.