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

ruby-changes:3049

From: ko1@a...
Date: 24 Dec 2007 02:31:40 +0900
Subject: [ruby-changes:3049] akr - Ruby:r14541 (trunk): add assertions.

akr	2007-12-24 02:31:32 +0900 (Mon, 24 Dec 2007)

  New Revision: 14541

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

  Log:
    add assertions.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io_m17n.rb?r1=14541&r2=14540

Index: test/ruby/test_io_m17n.rb
===================================================================
--- test/ruby/test_io_m17n.rb	(revision 14540)
+++ test/ruby/test_io_m17n.rb	(revision 14541)
@@ -161,6 +161,8 @@
     eucjp = "\xb3\xa2".force_encoding("EUC-JP")
     with_tmpdir {
       open('tmp', "w:EUC-JP") {|f|
+        assert_equal(Encoding::EUC_JP, f.external_encoding)
+        assert_equal(nil, f.internal_encoding)
         f.print utf8
       }
       assert_equal(eucjp, File.read('tmp').force_encoding("EUC-JP"))

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

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