mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00
* encoding.c (enc_compatible_p): add SPECIAL_CONST_P check.
* test/ruby/test_m17n.rb (test_compatible): fix test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
41d5072573
commit
5159f500fd
3 changed files with 15 additions and 7 deletions
|
@ -1280,7 +1280,7 @@ class TestM17N < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_compatible
|
||||
assert_equal(nil, Encoding.compatible?("",0), "moved from btest/knownbug")
|
||||
assert_raise(TypeError) {Encoding.compatible?("",0)}
|
||||
end
|
||||
|
||||
def test_force_encoding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue