summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-07 23:13:56 +0900
committerGitHub <noreply@github.com>2023-04-07 23:13:56 +0900
commitac8a16237c727ae2a1446ef6dc810d0e750971fb (patch)
treea9f29348a3e1f1bc357c7a759ca1c7af798dbe70 /test
parent4df7c3946ab8da8af4c3c0e38a41ab3bd890fc7f (diff)
downloadruby-ac8a16237c727ae2a1446ef6dc810d0e750971fb.tar.gz
[Bug #19563] Yield words separators per lines
So that newlines across a here-doc terminator will be separated tokens. Cf. https://github.com/ruby/irb/pull/558
Diffstat (limited to 'test')
-rw-r--r--test/ripper/test_scanner_events.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index da3dbfb66c..5d6ac615ca 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -712,7 +712,7 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase
scan('words_sep', '%w( w w w )')
assert_equal [' ', "\n", ' ', ' '],
scan('words_sep', "%w( w\nw w )")
- assert_equal ["\n\n", "\n ", ' ', ' '],
+ assert_equal ["\n", "\n", "\n", ' ', ' ', ' '],
scan('words_sep', "%w(\n\nw\n w w )")
end