diff options
| author | NARUSE, Yui <naruse@airemix.jp> | 2024-01-30 10:31:15 +0900 |
|---|---|---|
| committer | NARUSE, Yui <naruse@airemix.jp> | 2024-01-30 10:31:15 +0900 |
| commit | 5f3dfa1c273c6fb9eae65ceca633b46f7e30f686 (patch) | |
| tree | ff2509ad120d8a1ed3045d28b252c20626e40e72 /test/ruby | |
| parent | 818b4ea9b16e3570b431b86da9a24a5743b29617 (diff) | |
merge revision(s) d8702ddbfbe8cc7fc601a9a4d19842ef9c2b76c1: [Backport #20083]
Fix [Bug #20083]: correct a cache point size for atomic groups
(#9367)
---
regexec.c | 2 +-
test/ruby/test_regexp.rb | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_regexp.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index d4aae16037..b889b1a64e 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -1979,6 +1979,14 @@ class TestRegexp < Test::Unit::TestCase end end + def test_bug_20083 # [Bug #20083] + re = /([\s]*ABC)$/i + (1..100).each do |n| + text = "#{"0" * n}ABC" + assert text.match?(re) + end + end + def test_linear_time_p assert_send [Regexp, :linear_time?, /a/] assert_send [Regexp, :linear_time?, 'a'] |
