summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authorHiroya Fujinami <[email protected]>2024-01-10 13:40:20 +0900
committerGitHub <[email protected]>2024-01-10 13:40:20 +0900
commit8b65d15ff079ebcf7fa9f68a1163f76e87c47764 (patch)
treedddca2b791a47450d2b95e5cc2f8d01e50c1c21e /test/ruby/test_regexp.rb
parenta1949df5474429641446c89ca9664c12a32868d2 (diff)
Fix test case for `test_match_cache_with_peek_optimization` (#9466)
Diffstat (limited to 'test/ruby/test_regexp.rb')
-rw-r--r--test/ruby/test_regexp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index e047942637..0d6ab4682d 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -1950,7 +1950,7 @@ class TestRegexp < Test::Unit::TestCase
timeout = #{ EnvUtil.apply_timeout_scale(10).inspect }
begin;
Regexp.timeout = timeout
- assert_nil(/a*z/ =~ "a" * 1000000 + "x")
+ assert_nil(/a+z/ =~ "a" * 1000000 + "xz")
end;
end