summaryrefslogtreecommitdiff
path: root/test/ruby/test_string.rb
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2019-12-04 01:26:29 +0900
committerNARUSE, Yui <naruse@airemix.jp>2019-12-04 06:40:54 +0900
commit8852fa876039ed177fd5e867f36177d8a9ff411c (patch)
tree56dd2c368bfe7cc694bf333c3ef987e2fee1b727 /test/ruby/test_string.rb
parent08074eb71229b4c9f669f7bfb215bbb43525bfc0 (diff)
Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"
This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf. Revert [Feature #13083]
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r--test/ruby/test_string.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index a86e26c774..0276d6a14d 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -2469,7 +2469,6 @@ CODE
def test_match_method
assert_equal("bar", "foobarbaz".match(/bar/).to_s)
- assert_raise(TypeError) { "".match(nil) }
o = Regexp.new('foo')
def o.match(x, y, z); x + y + z; end
@@ -2525,10 +2524,6 @@ CODE
assert_equal('backref', $&)
end
- def test_match_p_nil
- assert_raise(TypeError) { ''.match?(nil) }
- end
-
def test_clear
s = "foo" * 100
s.clear