summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-29 22:50:16 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-29 22:50:16 +0000
commitd0045cad37b394eedd169a153b8589482f4a889f (patch)
treec56877dfff392f93b069071dcb06421d79da0749 /test/ruby/test_m17n.rb
parent8b9d53ed9d854fa8f97e0d5cc2242df1d72f3468 (diff)
downloadruby-d0045cad37b394eedd169a153b8589482f4a889f.tar.gz
ruby-d0045cad37b394eedd169a153b8589482f4a889f.tar.xz
ruby-d0045cad37b394eedd169a153b8589482f4a889f.zip
* encoding.c (enc_compatible_p): add SPECIAL_CONST_P check.
* test/ruby/test_m17n.rb (test_compatible): fix test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r--test/ruby/test_m17n.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index e82e04beb..a87822753 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -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