mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
453890a972
commit
e88009f40e
1 changed files with 10 additions and 0 deletions
|
@ -31,6 +31,11 @@ class TestDir_M17N < Test::Unit::TestCase
|
||||||
ents = Dir.entries(".")
|
ents = Dir.entries(".")
|
||||||
exit ents.include?(filename)
|
exit ents.include?(filename)
|
||||||
EOS
|
EOS
|
||||||
|
assert_ruby_status(%w[-EASCII-8BIT], <<-'EOS', nil, :chdir=>d)
|
||||||
|
filename = "\xA4\xA2"
|
||||||
|
ents = Dir.entries(".")
|
||||||
|
exit ents.include?(filename)
|
||||||
|
EOS
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -42,6 +47,11 @@ class TestDir_M17N < Test::Unit::TestCase
|
||||||
ents = Dir.entries(".")
|
ents = Dir.entries(".")
|
||||||
exit ents.include?(filename)
|
exit ents.include?(filename)
|
||||||
EOS
|
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
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue