ruby-changes:13435
From: nobu <ko1@a...>
Date: Sat, 3 Oct 2009 21:58:02 +0900 (JST)
Subject: [ruby-changes:13435] Ruby:r25208 (trunk): * test/ripper/test_scanner_events.rb: workaround for ruby-mode.el confusion.
nobu 2009-10-03 21:57:54 +0900 (Sat, 03 Oct 2009) New Revision: 25208 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25208 Log: * test/ripper/test_scanner_events.rb: workaround for ruby-mode.el confusion. Modified files: trunk/test/ripper/test_scanner_events.rb Index: test/ripper/test_scanner_events.rb =================================================================== --- test/ripper/test_scanner_events.rb (revision 25207) +++ test/ripper/test_scanner_events.rb (revision 25208) @@ -89,7 +89,7 @@ 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 @@ 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 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/