Skip to content

Commit

Permalink
Add object methods for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Oct 16, 2024
1 parent 2692c53 commit 78c2f52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/stdlib/Regexp_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_compile
assert_send_type '(string) -> Regexp',
Regexp, :compile, pattern

with_int(Regexp::IGNORECASE).and with_string('i'), true, false, nil do |options|
with_int(Regexp::IGNORECASE, object: true).and with_string('i'), true, false, nil do |options|
assert_send_type '(string, int | string | bool | nil) -> Regexp',
Regexp, :compile, pattern, options

Expand Down Expand Up @@ -118,7 +118,7 @@ def test_linear_time?
Regexp, :linear_time?, regexp, timeout: timeout
end

with_int(Regexp::IGNORECASE).and(with_string('i'), true, false, nil) do |options|
with_int(Regexp::IGNORECASE, object: true).and(with_string('i'), true, false, nil) do |options|
assert_send_type '(string, int | string | bool | nil) -> bool',
Regexp, :linear_time?, regexp, options

Expand Down Expand Up @@ -229,7 +229,7 @@ def test_new
assert_send_type '(string) -> Regexp',
Regexp, :new, pattern

with_int(Regexp::IGNORECASE).and with_string('i'), true, false, nil do |options|
with_int(Regexp::IGNORECASE, object: true).and with_string('i'), true, false, nil do |options|
assert_send_type '(string, int | string | bool | nil) -> Regexp',
Regexp, :new, pattern, options

Expand Down

0 comments on commit 78c2f52

Please sign in to comment.