From 5159f500fdab17c053075c7dd62b5050fdb80bc5 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 29 Aug 2008 22:50:16 +0000 Subject: * 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 --- test/ruby/test_m17n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_m17n.rb') 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 -- cgit v1.2.3