Skip to content

Commit

Permalink
Add not match case
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Mar 18, 2024
1 parent 211011e commit 8b81d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/stdlib/String_test.rb
@@ -1,4 +1,3 @@
# frozen_string_literal: false
require_relative 'test_helper'

# TODO: encode, encode!, byteslice
Expand Down Expand Up @@ -964,6 +963,8 @@ def test_gsub!
+'hello', :gsub!, pattern
assert_send_type '(Regexp | string) -> Enumerator[String, String]',
+'heya', :gsub!, pattern
assert_send_type '(Regexp | string) -> Enumerator[String, nil]',
+'a', :gsub!, 'b'

assert_send_type '(Regexp | string) { (String) -> _ToS } -> String',
+'hello', :gsub!, pattern do ToS.new end
Expand Down

0 comments on commit 8b81d40

Please sign in to comment.