1
0
Fork 0
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:
Yusuke Endoh 2021-03-16 21:38:00 +09:00
parent 7f0b3fb906
commit 6c7cb00c09

View file

@ -1314,7 +1314,7 @@ class TestRegexp < Test::Unit::TestCase
def test_backref_overrun
assert_raise_with_message(SyntaxError, /invalid backref number/) do
eval(%["".match /(())(?<X>)((?(90000)))/])
eval(%["".match(/(())(?<X>)((?(90000)))/)])
end
end