ruby-changes:38397
From: nobu <ko1@a...>
Date: Wed, 13 May 2015 11:11:13 +0900 (JST)
Subject: [ruby-changes:38397] nobu:r50478 (trunk): test_parse.rb: fix variable name
nobu 2015-05-13 11:10:29 +0900 (Wed, 13 May 2015) New Revision: 50478 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50478 Log: test_parse.rb: fix variable name * test/ruby/test_parse.rb (test_dstr_disallowed_variable): fix duplicate variable name to be tested. Modified files: trunk/test/ruby/test_parse.rb Index: test/ruby/test_parse.rb =================================================================== --- test/ruby/test_parse.rb (revision 50477) +++ test/ruby/test_parse.rb (revision 50478) @@ -362,7 +362,7 @@ class TestParse < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_parse.rb#L362 def test_dstr_disallowed_variable bug8375 = '[ruby-core:54885] [Bug #8375]' - %w[@ @1 @@. @@ @@1 @@. $ $%].each do |src| + %w[@ @1 @. @@ @@1 @@. $ $%].each do |src| src = '#'+src+' ' str = assert_nothing_raised(SyntaxError, "#{bug8375} #{src.dump}") do break eval('"'+src+'"') -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/