From cae4342dd559e34c1ce6219593f77f0ad80286da Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 16 Mar 2023 17:19:01 +0900 Subject: core_assertions.rb: Refine `assert_linear_performance` * Use an `Enumerable` as factors, instead of three arguments. --- test/ruby/test_regexp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_regexp.rb') diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index a2997af106..81dac20648 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(factor: 29, first: 10, max: 1, pre: pre) do |re, s| + assert_linear_performance([10, 29], pre: pre) do |re, s| re =~ s end end -- cgit v1.2.3