ruby-changes:65585
From: Yusuke <ko1@a...>
Date: Tue, 16 Mar 2021 21:40:38 +0900 (JST)
Subject: [ruby-changes:65585] 6c7cb00c09 (master): test/ruby/test_regexp.rb: Avoid "ambiguity between regexp and two divisions"
https://git.ruby-lang.org/ruby.git/commit/?id=6c7cb00c09 From 6c7cb00c094332a208cf36e5cd723a9ba60c41b8 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 16 Mar 2021 21:38:00 +0900 Subject: test/ruby/test_regexp.rb: Avoid "ambiguity between regexp and two divisions" --- test/ruby/test_regexp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 65ee0e4..a9e0cdf 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -1314,7 +1314,7 @@ class TestRegexp < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_regexp.rb#L1314 def test_backref_overrun assert_raise_with_message(SyntaxError, /invalid backref number/) do - eval(%["".match /(())(?<X>)((?(90000)))/]) + eval(%["".match(/(())(?<X>)((?(90000)))/)]) end end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/