1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ripper/test_scanner_events.rb: workaround for ruby-mode.el confusion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-10-03 12:57:54 +00:00
parent 2957020491
commit 7b26a97142

View file

@ -89,7 +89,7 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
validate_location "%w(a b\nc\r\nd \ne )" validate_location "%w(a b\nc\r\nd \ne )"
validate_location %Q["a\nb\r\nc"] validate_location %Q["a\nb\r\nc"]
validate_location "print(<<EOS)\nheredoc\nEOS\n" 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 end
def validate_location(src) def validate_location(src)
@ -121,7 +121,7 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
assert_equal [], assert_equal [],
scan('comma', %q[".,.,.,.,.,.,.."]) scan('comma', %q[".,.,.,.,.,.,.."])
assert_equal [], assert_equal [],
scan('comma', %Q[<<EOS\n,,,,,,,,,,\nEOS]) scan('comma', "<<EOS\n,,,,,,,,,,\nEOS")
end end
def test_period def test_period
@ -612,13 +612,13 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
assert_equal ['<<-EOS'], assert_equal ['<<-EOS'],
scan('heredoc_beg', "<<-EOS\nheredoc\n\tEOS \n") scan('heredoc_beg', "<<-EOS\nheredoc\n\tEOS \n")
assert_equal ['<<"EOS"'], assert_equal ['<<"EOS"'],
scan('heredoc_beg', %Q[<<"EOS"\nheredoc\nEOS]) scan('heredoc_beg', '<<"EOS"'"\nheredoc\nEOS")
assert_equal [%q(<<'EOS')], assert_equal ["<<'EOS'"],
scan('heredoc_beg', "<<'EOS'\nheredoc\nEOS") scan('heredoc_beg', "<<'EOS'\nheredoc\nEOS")
assert_equal [%q(<<`EOS`)], assert_equal ['<<`EOS`'],
scan('heredoc_beg', "<<`EOS`\nheredoc\nEOS") scan('heredoc_beg', "<<`EOS`\nheredoc\nEOS")
assert_equal [%q(<<" ")], assert_equal ['<<" "'],
scan('heredoc_beg', %Q[<<" "\nheredoc\nEOS]) scan('heredoc_beg', '<<" "'"\nheredoc\nEOS")
end end
def test_tstring_content_HEREDOC def test_tstring_content_HEREDOC