add quoted symbol tests; ref #3231

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-11-04 14:21:46 +09:00
parent 2960c69435
commit 46995c3264
+7
View File
@@ -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