summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-28 03:26:50 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-28 03:26:50 +0000
commit8bf06cb9752273f8fa1c9e176bb5ba85381f22a5 (patch)
treeaa2fe2c8f367d93546498dcec099a57ce26e8d8f /test
parenta888c50a1f8bdff6e5a49cc5e63143a2087c03f8 (diff)
merge revision(s) 67270: [Backport #15670]
dsym should be treated as string [ruby-core:91852] [Bug #15670] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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