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

ruby-changes:7793

From: akr <ko1@a...>
Date: Sat, 13 Sep 2008 03:00:19 +0900 (JST)
Subject: [ruby-changes:7793] Ruby:r19314 (trunk): add tests.

akr	2008-09-13 03:00:08 +0900 (Sat, 13 Sep 2008)

  New Revision: 19314

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

  Log:
    add tests.

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

Index: test/ruby/test_io_m17n.rb
===================================================================
--- test/ruby/test_io_m17n.rb	(revision 19313)
+++ test/ruby/test_io_m17n.rb	(revision 19314)
@@ -823,6 +823,18 @@
         f.set_encoding("iso-2022-jp")
       }
     }
+    assert_nothing_raised {
+      open("/dev/null", "r") {|f|
+        f.binmode
+        f.set_encoding("iso-2022-jp")
+      }
+    }
+    assert_nothing_raised {
+      open("/dev/null", "rt") {|f|
+        f.binmode
+        f.set_encoding("iso-2022-jp")
+      }
+    }
   end
 
   def test_write_conversion_fixenc

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

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