summaryrefslogtreecommitdiff
path: root/test
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
commit5159f500fdab17c053075c7dd62b5050fdb80bc5 (patch)
treec56877dfff392f93b069071dcb06421d79da0749 /test
parent41d50725736df60e0118c337f8378b27497c7d94 (diff)
* 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
Diffstat (limited to 'test')
-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 e82e04beb7..a878227534 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