aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-08 10:55:36 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-08 10:55:36 +0000
commit87a826b8c22a898dc954627b1cf43d9b62728333 (patch)
tree323b4a776fca999f293ad2c3bb24d8fea034e5bf /test/ruby/test_rubyoptions.rb
parent2e65b0d8bb9f00e458e4bc1e468e913f5404e0c1 (diff)
downloadruby-87a826b8c22a898dc954627b1cf43d9b62728333.tar.gz
reverted to r30124; r30124 breaks test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 5a22fa0c9a..9fad50ae4c 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -454,21 +454,6 @@ class TestRubyOptions < Test::Unit::TestCase
assert_in_out_err(["-we", "def foo\n eval('a=1')\nend"], "", [], [], feature3446)
assert_in_out_err(["-we", "1.times do\n a=1\nend"], "", [], [], feature3446)
assert_in_out_err(["-we", "def foo\n 1.times do\n a=1\n end\nend"], "", [], ["-e:3: warning: assigned but unused variable - a"], feature3446)
- bug4130 = '[ruby-dev:42718]'
- assert_in_out_err(["-we", "def foo\n"" 1.times do |a| end\n""end"], "", [],
- ["-e:2: warning: assigned but unused variable - a"], bug4130)
- end
-
- def test_shadowing_variable
- bug4130 = '[ruby-dev:42718]'
- assert_in_out_err(["-we", "def foo\n"" a=1\n"" 1.times do |a| a; end\n"" a\n""end"],
- "", [], ["-e:3: warning: shadowing outer local variable - a"], bug4130)
- assert_in_out_err(["-we", "def foo\n"" a = 1\n"" 1.times do |a|\n"" end\n""end"],
- "", [],
- ["-e:3: warning: shadowing outer local variable - a",
- "-e:3: warning: assigned but unused variable - a",
- "-e:2: warning: assigned but unused variable - a",
- ], bug4130)
end
def test_script_from_stdin