[前][次][番号順一覧][スレッド一覧]

ruby-changes:30111

From: naruse <ko1@a...>
Date: Thu, 25 Jul 2013 16:24:25 +0900 (JST)
Subject: [ruby-changes:30111] naruse:r42163 (trunk): Add a test for r42162

naruse	2013-07-25 16:24:12 +0900 (Thu, 25 Jul 2013)

  New Revision: 42163

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42163

  Log:
    Add a test for r42162

  Modified files:
    trunk/test/ruby/test_m17n.rb

Index: test/ruby/test_m17n.rb
===================================================================
--- test/ruby/test_m17n.rb	(revision 42162)
+++ test/ruby/test_m17n.rb	(revision 42163)
@@ -1465,6 +1465,8 @@ class TestM17N < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_m17n.rb#L1465
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]