aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-25 07:24:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-25 07:24:12 +0000
commit501c12a6b265a22a39bd9a2a07a1e1ba195b4413 (patch)
tree1cf84ef5b60f871fe622b2e47754de6d7bd07987 /test/ruby/test_m17n.rb
parent72293b69f8a6bd087bdccb9b0ccfec2e1d6af430 (diff)
downloadruby-501c12a6b265a22a39bd9a2a07a1e1ba195b4413.tar.gz
Add a test for r42162
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r--test/ruby/test_m17n.rb2
1 files changed, 2 insertions, 0 deletions
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