aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_symbol.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_symbol.rb
parent08074eb71229b4c9f669f7bfb215bbb43525bfc0 (diff)
downloadruby-8852fa876039ed177fd5e867f36177d8a9ff411c.tar.gz
Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"
This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf. Revert [Feature #13083]
Diffstat (limited to 'test/ruby/test_symbol.rb')
-rw-r--r--test/ruby/test_symbol.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index 75335f180d..660f2e1574 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -367,7 +367,6 @@ class TestSymbol < Test::Unit::TestCase
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
@@ -421,10 +420,6 @@ class TestSymbol < Test::Unit::TestCase
assert_equal('backref', $&)
end
- def test_match_p_nil
- assert_raise(TypeError) { :''.match?(nil) }
- end
-
def test_symbol_popped
assert_nothing_raised { eval('a = 1; :"#{ a }"; 1') }
end