diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-15 17:14:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-15 17:14:43 +0000 |
commit | 4fe6f84051d40b5cccef2c28b83b8d84e7a38905 (patch) | |
tree | b1680ac9a6acddf4dcf7446843b4b88509877f40 /test | |
parent | c4c9f464dc8f66f0af0c31e655dc3a7744bc9730 (diff) | |
download | ruby-4fe6f84051d40b5cccef2c28b83b8d84e7a38905.tar.gz ruby-4fe6f84051d40b5cccef2c28b83b8d84e7a38905.tar.xz ruby-4fe6f84051d40b5cccef2c28b83b8d84e7a38905.zip |
add tests.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_dir_m17n.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb index a6c9fcada..ad18ad753 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 |