From 501c12a6b265a22a39bd9a2a07a1e1ba195b4413 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 25 Jul 2013 07:24:12 +0000 Subject: [PATCH] Add a test for r42162 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_m17n.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index b58cd576cf..7c37c8a199 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -1465,6 +1465,8 @@ class TestM17N < Test::Unit::TestCase assert_equal(1, a.force_encoding("utf-8").size, '[ruby-core:22437]') b = "".force_encoding("ascii-8bit") << 0xC3.chr << 0xB6.chr assert_equal(1, b.force_encoding("utf-8").size, '[ruby-core:22437]') + + assert_raise(TypeError){ ''.force_encoding(nil) } end def test_combchar_codepoint