test_dir_m17n.rb: assert_raw_file_name

* test/ruby/test_dir_m17n.rb (assert_raw_file_name): rename to
  show caller method in failure messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-28 04:20:35 +00:00
Родитель bd50aaf618
Коммит d85195712d
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -11,7 +11,7 @@ class TestDir_M17N < Test::Unit::TestCase
}
end
def create_and_check_raw_file_name(code, encoding)
def assert_raw_file_name(code, encoding)
with_tmpdir { |dir|
assert_separately(["-E#{encoding}"], <<-EOS, :chdir=>dir)
filename = #{code}.chr('UTF-8').force_encoding("#{encoding}")
@ -221,15 +221,15 @@ class TestDir_M17N < Test::Unit::TestCase
end
def test_filename_utf8_raw_jp_name
create_and_check_raw_file_name(0x3042, "UTF-8")
assert_raw_file_name(0x3042, "UTF-8")
end
def test_filename_utf8_raw_windows_1251_name
create_and_check_raw_file_name(0x0424, "UTF-8")
assert_raw_file_name(0x0424, "UTF-8")
end
def test_filename_utf8_raw_windows_1252_name
create_and_check_raw_file_name(0x00c6, "UTF-8")
assert_raw_file_name(0x00c6, "UTF-8")
end
def test_filename_ext_euc_jp_and_int_utf_8