summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-03-16 09:22:42 -0700
committerTakashi Kokubun <[email protected]>2023-03-16 09:22:42 -0700
commita8e7fee80129b0ba360c2671582117c8e18a6464 (patch)
treebc95c4dbeb9b481f0b8e110a4e2407f2aa04fa3b /test/ruby/test_regexp.rb
parent2f81bb793fd217374054ee78cb5cd595cfacf9fe (diff)
Revert "core_assertions.rb: Refine `assert_linear_performance`"
This reverts commit cae4342dd559e34c1ce6219593f77f0ad80286da. This is failing a lot of CIs and nobody is actively looking into fixing it. Let me revert this until we have a solution to it.
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 81dac20648..a2997af106 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -1783,7 +1783,7 @@ class TestRegexp < Test::Unit::TestCase
def test_linear_performance
pre = ->(n) {[Regexp.new("a?" * n + "a" * n), "a" * n]}
- assert_linear_performance([10, 29], pre: pre) do |re, s|
+ assert_linear_performance(factor: 29, first: 10, max: 1, pre: pre) do |re, s|
re =~ s
end
end