summaryrefslogtreecommitdiff
path: root/test/ripper/test_scanner_events.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r--test/ripper/test_scanner_events.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index 6599165700..800147c5be 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -89,7 +89,7 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
validate_location "%w(a b\nc\r\nd \ne )"
validate_location %Q["a\nb\r\nc"]
validate_location "print(<<EOS)\nheredoc\nEOS\n"
- validate_location %Q[print(<<-"EOS")\nheredoc\n EOS\n]
+ validate_location "print(<<-\"EOS\")\nheredoc\n EOS\n"
end
def validate_location(src)
@@ -121,7 +121,7 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
assert_equal [],
scan('comma', %q[".,.,.,.,.,.,.."])
assert_equal [],
- scan('comma', %Q[<<EOS\n,,,,,,,,,,\nEOS])
+ scan('comma', "<<EOS\n,,,,,,,,,,\nEOS")
end
def test_period
@@ -612,13 +612,13 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
assert_equal ['<<-EOS'],
scan('heredoc_beg', "<<-EOS\nheredoc\n\tEOS \n")
assert_equal ['<<"EOS"'],
- scan('heredoc_beg', %Q[<<"EOS"\nheredoc\nEOS])
- assert_equal [%q(<<'EOS')],
+ scan('heredoc_beg', '<<"EOS"'"\nheredoc\nEOS")
+ assert_equal ["<<'EOS'"],
scan('heredoc_beg', "<<'EOS'\nheredoc\nEOS")
- assert_equal [%q(<<`EOS`)],
+ assert_equal ['<<`EOS`'],
scan('heredoc_beg', "<<`EOS`\nheredoc\nEOS")
- assert_equal [%q(<<" ")],
- scan('heredoc_beg', %Q[<<" "\nheredoc\nEOS])
+ assert_equal ['<<" "'],
+ scan('heredoc_beg', '<<" "'"\nheredoc\nEOS")
end
def test_tstring_content_HEREDOC