summaryrefslogtreecommitdiff
path: root/test/ripper
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-16 04:00:14 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-16 04:00:14 +0000
commit7006fdecf2ff5e832cd6da1bf02462146a9190b8 (patch)
treedf682cb7f87b07adeee6c1486c2cd0cd8e60332f /test/ripper
parente4c184c6aeb29e3f47c6daf7c5ff26ef1ef440a8 (diff)
dsym should be treated as string [ruby-core:91852] [Bug #15670]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper')
-rw-r--r--test/ripper/test_sexp.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb
index 064c0f1536..d63464d5a7 100644
--- a/test/ripper/test_sexp.rb
+++ b/test/ripper/test_sexp.rb
@@ -132,4 +132,12 @@ eot
end
end
end
+
+ def test_dsym
+ bug15670 = '[ruby-core:91852]'
+ _, (_, _, s) = Ripper.sexp_raw(%q{:"sym"})
+ assert_equal([:dyna_symbol, [:string_add, [:string_content], [:@tstring_content, "sym", [1, 2]]]],
+ s,
+ bug15670)
+ end
end if ripper_test