* test/ruby: uniquify test names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-11 05:29:42 +00:00
parent 4ed23fe8c5
commit 12000bc2de
2 changed files with 7 additions and 7 deletions

View File

@ -184,7 +184,7 @@ EOT
} }
end end
def test_open_r_encname_encname_in_opt def test_open_r_externalencname_internalencname_in_opt
with_tmpdir { with_tmpdir {
generate_file('tmp', "") generate_file('tmp', "")
open("tmp", "r", external_encoding: "euc-jp", internal_encoding: "utf-8") {|f| open("tmp", "r", external_encoding: "euc-jp", internal_encoding: "utf-8") {|f|

View File

@ -1372,7 +1372,7 @@ class TestTranscode < Test::Unit::TestCase
"\xA1\xA1".encode("ISO-2022-JP", "EUC-JP")) "\xA1\xA1".encode("ISO-2022-JP", "EUC-JP"))
end end
def test_cp50221 def test_from_cp50221
assert_equal("!", "\e(B\x21".encode("utf-8", "cp50221")) assert_equal("!", "\e(B\x21".encode("utf-8", "cp50221"))
assert_equal("!", "\e(J\x21".encode("utf-8", "cp50221")) assert_equal("!", "\e(J\x21".encode("utf-8", "cp50221"))
assert_equal("\uFF71", "\xB1".encode("utf-8", "cp50221")) assert_equal("\uFF71", "\xB1".encode("utf-8", "cp50221"))
@ -1388,10 +1388,10 @@ class TestTranscode < Test::Unit::TestCase
assert_equal("\u5fde", "\e$B\x7A\x21".encode("utf-8", "cp50221")) assert_equal("\u5fde", "\e$B\x7A\x21".encode("utf-8", "cp50221"))
assert_equal("\u72be", "\e$B\x7B\x21".encode("utf-8", "cp50221")) assert_equal("\u72be", "\e$B\x7B\x21".encode("utf-8", "cp50221"))
assert_equal("\u91d7", "\e$B\x7C\x21".encode("utf-8", "cp50221")) assert_equal("\u91d7", "\e$B\x7C\x21".encode("utf-8", "cp50221"))
assert_equal("\e(I!_\e(B", "\xA1\xDF".encode("cp50220","sjis"))
end end
def test_cp50221 def test_to_cp50221
assert_equal("\e(I!_\e(B", "\xA1\xDF".encode("cp50220","sjis"))
assert_equal("\e$B!#!,\e(B".force_encoding("cp50220"), assert_equal("\e$B!#!,\e(B".force_encoding("cp50220"),
"\xA1\xDF".encode("cp50220","sjis")) "\xA1\xDF".encode("cp50220","sjis"))
assert_equal("\e$B%*!+%,%I%J!+%N!+%P%\\%^!+%Q%]%\"\e(B".force_encoding("cp50220"), assert_equal("\e$B%*!+%,%I%J!+%N!+%P%\\%^!+%Q%]%\"\e(B".force_encoding("cp50220"),