From e88009f40e93cbd33610266aa433dec6a8794f1b Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 15 Nov 2009 17:14:43 +0000 Subject: [PATCH] add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_dir_m17n.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb index a6c9fcadad..ad18ad753c 100644 --- a/test/ruby/test_dir_m17n.rb +++ b/test/ruby/test_dir_m17n.rb @@ -31,6 +31,11 @@ class TestDir_M17N < Test::Unit::TestCase 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 @@ class TestDir_M17N < Test::Unit::TestCase 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