summaryrefslogtreecommitdiff
path: root/test/ripper
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper')
-rw-r--r--test/ripper/test_scanner_events.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index a4dd37bad7..6b95c4f5dd 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -573,19 +573,21 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
R.scan('heredoc_beg', "<<'EOS'\nheredoc\nEOS")
assert_equal [%q(<<`EOS`)],
R.scan('heredoc_beg', "<<`EOS`\nheredoc\nEOS")
+ assert_equal [%q(<<" ")],
+ R.scan('heredoc_beg', %Q[<<" "\nheredoc\nEOS])
end
- def test_heredoc_content
+ def test_tstring_content_HEREDOC
assert_equal [],
- R.scan('heredoc_content', '')
+ R.scan('tstring_content', '')
assert_equal ["heredoc\n"],
- R.scan('heredoc_content', "<<EOS\nheredoc\nEOS")
+ R.scan('tstring_content', "<<EOS\nheredoc\nEOS")
assert_equal ["heredoc\n"],
- R.scan('heredoc_content', "<<EOS\nheredoc\nEOS\n")
+ R.scan('tstring_content', "<<EOS\nheredoc\nEOS\n")
assert_equal ["heredoc \n"],
- R.scan('heredoc_content', "<<EOS\nheredoc \nEOS \n")
+ R.scan('tstring_content', "<<EOS\nheredoc \nEOS \n")
assert_equal ["heredoc\n"],
- R.scan('heredoc_content', "<<-EOS\nheredoc\n\tEOS \n")
+ R.scan('tstring_content', "<<-EOS\nheredoc\n\tEOS \n")
end
def test_heredoc_end