summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-11-04 14:21:46 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-11-04 14:21:46 +0900
commit46995c32643fc04d098c095e0f509e08f67c0e38 (patch)
treecc5204eb41eff61c071d7e69a1c3dd2329c14ccc /test
parent2960c69435e1e03cb55880d8f16f5355c4d98e80 (diff)
downloadmruby-46995c32643fc04d098c095e0f509e08f67c0e38.tar.gz
mruby-46995c32643fc04d098c095e0f509e08f67c0e38.zip
add quoted symbol tests; ref #3231
Diffstat (limited to 'test')
-rw-r--r--test/t/symbol.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/symbol.rb b/test/t/symbol.rb
index b0252849d..9059f45c2 100644
--- a/test/t/symbol.rb
+++ b/test/t/symbol.rb
@@ -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