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

ruby-changes:4914

From: ko1@a...
Date: Wed, 14 May 2008 02:16:11 +0900 (JST)
Subject: [ruby-changes:4914] akr - Ruby:r16407 (trunk): add a test.

akr	2008-05-14 02:16:03 +0900 (Wed, 14 May 2008)

  New Revision: 16407

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

  Log:
    add a test.


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

Index: test/ruby/test_utf16.rb
===================================================================
--- test/ruby/test_utf16.rb	(revision 16406)
+++ test/ruby/test_utf16.rb	(revision 16407)
@@ -262,6 +262,10 @@
                 "Regexp.new(#{encdump s}).encoding")
   end
 
+  def test_regexp_match
+    assert_raise(ArgumentError) { Regexp.new("aa".force_encoding("utf-16be")) =~ "aa" }
+  end
+
   def test_gsub
     s = "abcd".force_encoding("utf-16be")
     assert_nothing_raised {

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

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