diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-13 02:10:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-13 02:10:29 +0000 |
commit | c3cc91f1b7d45835e91d31eee2008c77b0f8310d (patch) | |
tree | fae96e1f054c954f70d2c4a489d84a2382789792 /test/ruby | |
parent | 95f54fb01969fe2799dc6425bbd4102f334feada (diff) | |
download | ruby-c3cc91f1b7d45835e91d31eee2008c77b0f8310d.tar.gz |
test_parse.rb: fix variable name
* test/ruby/test_parse.rb (test_dstr_disallowed_variable): fix
duplicate variable name to be tested.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_parse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 43de64be73..2d51ff3453 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -362,7 +362,7 @@ class TestParse < Test::Unit::TestCase 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+'"') |