mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_regexp.rb: Avoid "ambiguity between regexp and two divisions"
This commit is contained in:
parent
7f0b3fb906
commit
6c7cb00c09
1 changed files with 1 additions and 1 deletions
|
@ -1314,7 +1314,7 @@ class TestRegexp < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_backref_overrun
|
def test_backref_overrun
|
||||||
assert_raise_with_message(SyntaxError, /invalid backref number/) do
|
assert_raise_with_message(SyntaxError, /invalid backref number/) do
|
||||||
eval(%["".match /(())(?<X>)((?(90000)))/])
|
eval(%["".match(/(())(?<X>)((?(90000)))/)])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue