diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
commit | 41f4317f45021460871bd11c666f438f5517904b (patch) | |
tree | c7ac02b58faafe7f92946fe8f14c18480280624f /test/ruby/test_enum.rb | |
parent | 311b7154839b91c87ee40908ac6d3f5c330d7b11 (diff) | |
download | ruby-41f4317f45021460871bd11c666f438f5517904b.tar.gz |
test/ruby: suppress parser warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_enum.rb')
-rw-r--r-- | test/ruby/test_enum.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb index ab3564491a..6162830b69 100644 --- a/test/ruby/test_enum.rb +++ b/test/ruby/test_enum.rb @@ -206,7 +206,7 @@ class TestEnumerable < Test::Unit::TestCase assert_equal([], @empty.first(10)) bug5801 = '[ruby-dev:45041]' - assert_in_out_err([], <<-'end;', [], /unexpected break/) + assert_in_out_err([], <<-'end;', [], /unexpected break/, bug5801) empty = Object.new class << empty attr_reader :block @@ -703,7 +703,7 @@ class TestEnumerable < Test::Unit::TestCase bug9605 = '[ruby-core:61340]' lambda2 = ->(x, i) { x == 'c' } - assert_equal(['c',2], @obj.each_with_index.detect(&lambda2)) + assert_equal(['c',2], @obj.each_with_index.detect(&lambda2), bug9605) end def test_select @@ -723,7 +723,7 @@ class TestEnumerable < Test::Unit::TestCase bug9605 = '[ruby-core:61340]' lambda2 = ->(x, i) { x == 'c' } - assert_equal([['c',2]], @obj.each_with_index.select(&lambda2)) + assert_equal([['c',2]], @obj.each_with_index.select(&lambda2), bug9605) end def test_map |