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

ruby-changes:4185

From: ko1@a...
Date: Mon, 3 Mar 2008 17:54:43 +0900 (JST)
Subject: [ruby-changes:4185] akr - Ruby:r15675 (trunk): test updated.

akr	2008-03-03 17:54:31 +0900 (Mon, 03 Mar 2008)

  New Revision: 15675

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

  Log:
    test updated.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_utf16.rb?r1=15675&r2=15674&diff_format=u

Index: test/ruby/test_utf16.rb
===================================================================
--- test/ruby/test_utf16.rb	(revision 15674)
+++ test/ruby/test_utf16.rb	(revision 15675)
@@ -259,6 +259,10 @@
 
   def test_gsub
     s = "abcd".force_encoding("utf-16be")
+    assert_nothing_raised {
+      s.gsub(Regexp.new(".".encode("utf-16be")), "xy")
+    }
+    s = "ab\0\ncd".force_encoding("utf-16be")
     assert_raise(ArgumentError) {
       s.gsub(Regexp.new(".".encode("utf-16be")), "xy")
     }

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

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