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

ruby-changes:3774

From: ko1@a...
Date: Sun, 27 Jan 2008 07:51:16 +0900 (JST)
Subject: [ruby-changes:3774] akr - Ruby:r15263 (trunk): add tests.

akr	2008-01-27 07:50:56 +0900 (Sun, 27 Jan 2008)

  New Revision: 15263

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

  Log:
    add tests.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n.rb?r1=15263&r2=15262&diff_format=u

Index: test/ruby/test_m17n.rb
===================================================================
--- test/ruby/test_m17n.rb	(revision 15262)
+++ test/ruby/test_m17n.rb	(revision 15263)
@@ -897,6 +897,9 @@
     }
     s = e("\xa3\xb0\xa3\xb1\xa3\xb2\xa3\xb3\xa3\xb4")
     assert_equal(e("\xa3\xb0z\xa3\xb2\xa3\xb3\xa3\xb4"), s.gsub(/\xa3\xb1/e, "z"))
+
+    assert_equal(Encoding::EUC_JP, (a("").gsub(//) { e("") }.encoding))
+    assert_equal(Encoding::EUC_JP, (a("a").gsub(/a/) { e("") }.encoding))
   end
 
   def test_end_with

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

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