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

ruby-changes:13977

From: akr <ko1@a...>
Date: Mon, 16 Nov 2009 02:14:55 +0900 (JST)
Subject: [ruby-changes:13977] Ruby:r25785 (trunk): add tests.

akr	2009-11-16 02:14:43 +0900 (Mon, 16 Nov 2009)

  New Revision: 25785

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

  Log:
    add tests.

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

Index: test/ruby/test_dir_m17n.rb
===================================================================
--- test/ruby/test_dir_m17n.rb	(revision 25784)
+++ test/ruby/test_dir_m17n.rb	(revision 25785)
@@ -31,6 +31,11 @@
         ents = Dir.entries(".")
         exit ents.include?(filename)
       EOS
+      assert_ruby_status(%w[-EASCII-8BIT], <<-'EOS', nil, :chdir=>d)
+        filename = "\xA4\xA2"
+        ents = Dir.entries(".")
+        exit ents.include?(filename)
+      EOS
     }
   end
 
@@ -42,6 +47,11 @@
         ents = Dir.entries(".")
         exit ents.include?(filename)
       EOS
+      assert_ruby_status(%w[-EASCII-8BIT], <<-'EOS', nil, :chdir=>d)
+        filename = "\u3042".force_encoding("ASCII-8BIT")
+        ents = Dir.entries(".")
+        exit ents.include?(filename)
+      EOS
     }
   end
 

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

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