summaryrefslogtreecommitdiff
path: root/test/ruby/test_parse.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-13 11:50:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-13 11:50:09 +0000
commit75a68057c712897bce6d787114ffa72504556756 (patch)
treedb1e72fb93e9f0f0765c233c2246d8283e83a0a8 /test/ruby/test_parse.rb
parent9042cf217ea758ba988cb0000e8801e573457390 (diff)
parse.y: no named capture conflict warnings
* parse.y (reg_named_capture_assign_iter): remove named capture conflict warnings. it is just annoying rather than useful. [ruby-core:75416] [Bug #12359] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r--test/ruby/test_parse.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 9f83598ceb..eca1744b96 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -869,9 +869,9 @@ x = __ENCODING__
def test_named_capture_conflict
a = 1
- assert_warning(/named capture conflict/) {eval("a = 1; /(?<a>)/ =~ ''")}
+ assert_warning('') {eval("a = 1; /(?<a>)/ =~ ''")}
a = "\u{3042}"
- assert_warning(/#{a}/) {eval("#{a} = 1; /(?<#{a}>)/ =~ ''")}
+ assert_warning('') {eval("#{a} = 1; /(?<#{a}>)/ =~ ''")}
end
=begin